What is/are the purpose(s) of JavaScript events? i) Provide a dynamic…
2023
What is/are the purpose(s) of JavaScript events? i) Provide a dynamic interface to a webpage. ii) Provide a static interface to a webpage.
- A.
Only (i)
- B.
Only (ii)
- C.
Both (i) and (ii)
- D.
Neither (i) nor (ii)
Attempted by 147 students.
Show answer & explanation
Correct answer: A
JavaScript events enable webpages to respond dynamically to user interactions and browser actions. This functionality supports statement (i) by creating a dynamic interface, whereas static interfaces do not rely on event handling.