Session 13 Exercises

Exercise 1:


  • Implement a new route in the HomeController with a basic HTML view
  • Add a series of divs to the page with red backgrounds

Exercise 2:


  • Change the boxes to blue on page load with JavaScript
  • TIP: Use querySelectorAll and a loop

Exercise 3:


  • Add JavaScript to change the colors of the boxes to pink when clicked