Vidyalelo
JavaScript · Q58

Server

Programming · JavaScript · question 58

Q58

When will the window property come into play?

A.
Representation convenience
B.
Use as an extension of other objects
C.
Use objects in the Window object
D.
Refer to window object itself
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The Window object has a property named window that always refers to itself. You can use this property if you need to refer to the window object itself, but it is not usually necessary to use window if you just want to refer to access properties of the global window object.