Jul 24, 2017 · 1 min read
Did you run your codesnippet in your browser yourself? It’s not possible to override the undefined value, so your check typeof undefined === 'undefined' will always return true as it never gets overwritten… copy your code and run it in your dev-console and you will see :)