In an effort to write "secure" JavaScript code, apply the "use strict" directive and break bad programming habits.
Right:
function foo () {
'use strict';
var x = 'test';
}
Wrong:
function foo () {
x = 'test';
}
In an effort to write "secure" JavaScript code, apply the "use strict" directive and break bad programming habits.
Right:
function foo () {
'use strict';
var x = 'test';
}
Wrong:
function foo () {
x = 'test';
}