background color changing app was short and sweet to complete. All I had to do was create a class list toggle of different class how it own color and then add a ‘click' function to the button. Once the button was clicked, a different background color would appear, based on the new class name it will toggle switch.
I didn't learn any new JavaScript features during this project but I was refreshed on using JavaScript to style CSS Example
element.style.backgroundColor = red;
Lines of code:
- 4 lines of code.
Time to code:
This took about 3 minutes to code.
Biggest take away:
None.