Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this-keyword: answer ambiguous. Can be undefined #154

Open
senocular opened this issue Nov 12, 2019 · 0 comments
Open

this-keyword: answer ambiguous. Can be undefined #154

senocular opened this issue Nov 12, 2019 · 0 comments

Comments

@senocular
Copy link
Contributor

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:

  1. Go to https://quiz.typeofnan.dev/this-keyword/
  2. Click on undefined
  3. Click on submit

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant