Name the top-level object, also known as the default object of the JavaScript…
2022
Name the top-level object, also known as the default object of the JavaScript Object Model.
- A.
Document
- B.
Body
- C.
Location
- D.
Window
Attempted by 175 students.
Show answer & explanation
Correct answer: D
The window object is the top-level and default object in the JavaScript Object Model (JOM). All global variables, functions, and objects automatically become properties of the window object in a web browser.
A video solution is available for this question — log in and enroll to watch it.