Skip to content

Instantly share code, notes, and snippets.

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