This project is intended to be used with a python simple server - run the following command in your terminal: python3 -m http.server - navigate to localhost:8000 in your browser * sometimes the python server doesn’t register changes to your files - if you notice this happening, restart the server and do a hard refresh
Dog class in the dog.js file
name, age, imgSrc
addToDOM():
li to the ul with id of “dog-list”
li should contain a label element with the inner text set to the dog’s name property and an img element with the src set to the dog’s imgSrc propertyShelter class in the shelter.js file
dogs (array, set to empty array if no value passed in)
receiveDog()
form element and use those values to instantiate a new instance of the Dog class
dogs arrayregisterListeners()
form element with an id of “dog-form” that calls the receiveDog method when the form is submittedindex.js
Dog class with a name of “Bodhi”, an age of 5 and an image source of “./images/bodhi.jpg”Shelter class, passing in the dog instance you just created