Revision Quiz: Unit II - JavaScript

Unit II Revision Self-Check

Question 1: Which keyword is preferred when a JavaScript variable should not be reassigned?
Select an item
Question 2: Which method is commonly used to select an element from the DOM using a CSS selector?
Select an item
Question 3: Which operator checks both value and type equality in JavaScript?
Select an item
Question 4: Which array method returns a new array containing only elements that match a condition?
Select an item
Question 5: What does event.preventDefault() do in an event handler?
Select an item