Use only proper html5 markup as well as valid javascript


Create an HTML page that uses JavaScript to create a custom object for a pet. The object should know who the pet owner is and the gender of the pet. Create inherited Dog and Cat objects with a speak() method that returns the sound the pet makes. e.g. Woof, Meow, etc.

Use only proper HTML5 markup as well as valid JavaScript code. You must manually code the page in NotePad++ (or another plain text editor).

The JavaScript code must generate HTML markup that includes:

  • Displaying the information for two cats, each a different instantiation of the Cat object.
  • Displaying the information for two dogs, each a different instantiation of the Dog object.

Solution Preview :

Prepared by a verified Expert
Business Economics: Use only proper html5 markup as well as valid javascript
Reference No:- TGS02227772

Now Priced at $25 (50% Discount)

Recommended (90%)

Rated (4.3/5)