20 JavaScript Coding Exercises Source Code included
Coding Exercises Source Code included!!!! 1. Change Background Color Objective: Create a web page with a button that changes the background color of the page when clicked. <!DOCTYPE html> <html> <head> <title>Change Background Color</title> </head> <body> <button id=”changeColorBtn”>Change Background Color</button> <script> document.getElementById(‘changeColorBtn’).addEventListener(‘click’, function() { document.body.style.backgroundColor = ‘lightblue’; }); </script> </body> </html> 2. Toggle Image Display … Read more