Created
May 12, 2017 09:04
-
-
Save rkaw92/ae0be339440f5e71977d0ddffc59c33a to your computer and use it in GitHub Desktop.
strict mode demo in Node.js - it still isn't the default
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
(function nonStrict() { | |
console.log('nonStrict: %s', typeof this); | |
})(); | |
(function strict() { | |
'use strict'; | |
console.log('strict: %s', typeof this); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment