Project 5 - Javascript III - Part A
- Login to your W3 Schools Spaces account and open your project5.html file.
- Create an array of say your favorite animals, dogs, cars foods .. whatever you feel. Make sure they are all text strings.
- Apply a sort to the array.
- Loop through the array and using innetHTML, insert the contents of array into the paragraph tag with the ID of 'target'.
- 4. Wrap all this code into a function and call it with an annonymous function using an onclick event handler applied to the button on the page.
Now go back to your course and review Chapter 10 of the Javascript Foundations StudioWeb course.