Skip to content

Instantly share code, notes, and snippets.

@rkaw92
Created May 12, 2017 09:04
Show Gist options
  • Save rkaw92/ae0be339440f5e71977d0ddffc59c33a to your computer and use it in GitHub Desktop.
Save rkaw92/ae0be339440f5e71977d0ddffc59c33a to your computer and use it in GitHub Desktop.
strict mode demo in Node.js - it still isn't the default
(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