Question:

What does the following line return when typed into the JavaScript web console of an internet browser?

this === window

Answer:

true

window is a keyword that refers to the global object. this refers to different objects in different contexts, but it refers to the window object in the top level namespace.


Keywords:

© 2017 QuizBucket.org