You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result of the function in the question can be either window or undefined but the question only accepts window as a correct answer. Here's an example of the same code producing undefined: https://senocular.github.io/tests/function-context/
Expected behavior
Answer is correct or question goes into more detail about the environment beyond just being in the browser that explicitly rules out situations where it may be undefined (i.e. strict mode).
Desktop (please complete the following information):
OS: Mac
Browser chrome
Version 78
The text was updated successfully, but these errors were encountered:
Describe the bug
The result of the function in the question can be either window or undefined but the question only accepts window as a correct answer. Here's an example of the same code producing undefined: https://senocular.github.io/tests/function-context/
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Answer is correct or question goes into more detail about the environment beyond just being in the browser that explicitly rules out situations where it may be undefined (i.e. strict mode).
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: