Skip to content

Instantly share code, notes, and snippets.

@think49
Forked from os0x/test006.js
Created March 11, 2012 03:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save think49/2014827 to your computer and use it in GitHub Desktop.
Save think49/2014827 to your computer and use it in GitHub Desktop.
// strict check
//
function strict () {
'use strict';
var isStrict = (function () { return typeof this === 'undefined'; }());
console.log(isStrict);
}
function nonStrict () {
var isStrict = (function () { return typeof this === 'undefined'; }());
console.log(isStrict);
}
strict();
nonStrict();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment