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.
Answer: D. Window — The window object is the top-level and default object in the JavaScript Object Model (JOM). All global variables, functions, and objects automatically become…
- A.
Document
- B.
Body
- C.
Location
- D.
Window
Attempted by 500 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.
Loading lesson…