Javascript Week Four
Javascript Week Four
Tasks:
Tasks:
Task 3: Create a dog class and add the following methods: bark,
walk,run,wiggleTail, and getAngry. Add the following fields:
breed, colour, size, tail. Instantiate the class to create at least
three different breeds. Develop a simple UI for dog with buttons
for bark,run,getAngry, wiggleTail. Add an event listener, on click,
call the method to display what the dog is doing to the user.