Lecture 13 Quiz: JavaScript Functions & Event Handling

Note

Review before quiz: Lectures | Week 4 Content | Lab 4 | Assignment 2

Lecture 13 Self-Check

Question 1: What is a primary purpose of JavaScript functions?
Select an item
Question 2: Which method is commonly used to attach event handlers to DOM elements?
Select an item
Question 3: What does event.preventDefault() do?
Select an item
Question 4: Which event object property usually refers to the element that triggered the event?
Select an item
Question 5: Which option is valid JavaScript function syntax?
Select an item