Github Source Files
This background color changing app was short and sweet to complete. Since I was given the HTML and CSS assets (really, just the styled BootStrap4 button), all I had to do was create an array of different colors and then add a ‘click' event listener to the button. Once the button was clicked, a different background color would appear.
New things learned or refreshed:
element.style.backgroundColor = red;)
Lines of code:
12 lines of code.
Time to code:
This took about 5 minutes to code.
Biggest take away:
What to accomplish:
- Download the source code from the github repository above.
- Delete the script.js file.
- Add a link to your finished project below!