Test for strict mode
Can we have strict mode?
(function(){
"use strict";
var is_strict = (function() {
return !this;
}());
console.info(strict);
})();
Is strict mode active?
var can_strict = (function() {
"use strict";
return !this;
}());
Written by Béla Varga
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ecmascript
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#