3 ms·
And if you use strict mode, the engine may throw an error when you create a global variable. function foo() { 'use strict'; bar = 5; // Error (
by bobbytherobot 10y ago
And if you use strict mode, the engine may throw an error when you create a global variable.
function foo() {
'use strict';
bar = 5; // Error (maybe)
window.bar = 6; // No error
}