#JavaScript fun fact: "undefined" is not a special keyword, just an identifier. ...
Peter Kröner @sir_pepe@mastodon.social
#JavaScript fun fact: "undefined" is not a special keyword, just an identifier. You (unfortunately) can't overwrite the global undefined, but you are the master of your local scope. Point undefined to anything you like! This also works with "window", "NaN", "Infinity" and many more not-so-special values 🙃