JavaScript doesn't care if your Strings are double-quoted "double"
or single-quoted 'single'
.
Every example of ECMAScript 5's strict mode has it enabled by "use strict"
in double-quotes. Can I do the following (single-quotes):
alert(function(){
'use strict';
return !this;
}());
This will return true if Strict mode is enabled, and false if it is not.
For you, without using a browser that supports strict mode: