Question: In Javascript please Create a Puppy class with properties name and height passed to the constructor. 1 2 /* Your solution goes here */ 3
In Javascript please

Create a Puppy class with properties name and height passed to the constructor. 1 2 /* Your solution goes here */ 3 class Puppy{ 4 constructor(str,ht) { 5 this.puppyname str; 6 this.height ht; 7 } 8 } 9 10 mypuppy = new Puppy("Buddy",3.4); * Testing value of name with Puppy("Buddy", "1 feet") Yours and expected differ. See highlights below. Yours Yours has no value Expected Buddy Testing value of height with Puppy("Buddy", "1 feet") Yours 1 feet * Testing value of name with Puppy("Lulu", "8 inches") Yours and expected differ. See highlights below. Yours Yours has no value Expected Lulu Testing value of height with Puppy("Lulu", "8 inches") Yours 8 inches View your last submission
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
