Created
June 28, 2019 16:06
-
-
Save briandk/672a7b88c5837bde36c1492701d983c9 to your computer and use it in GitHub Desktop.
What do you predict these expressions will return? Fun with undefined and Object.keys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.keys(undefined) | |
undefined + {} | |
Object.keys(undefined + {}) | |
(undefined + {})[Object.keys(undefined + {})[23]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment