Spoken Tutorials - JavaScript Assignment Funded by the Ministry of Education (MoE), GOI Indian Institute of Technology Bombay, https://spoken-tutorial.org ------------------------------------------------------------- Event and Event Listeners in JS 1. Open the file "MyPage.html" 2. Clear the existing code 3. Add a button named "Click" with "id" as "click" 4. Open the file "assignment.js" 5. Clear the existing code 6. Access the button element using "id" 7. Add an "event listener" 8. On even button clicks, log - "Foo" 9. On odd button clicks, log - "Bar" 10. Open the file "MyPage.html" in a web browser 11. Observe the output in the browser's console