JavaScript Tutorial ✦
Use Strict Directive
Enables strict mode which imposes stricter parsing and error handling.
'use strict';
function example() {
a = 5; // ReferenceError: a is not defined
}
Enables strict mode which imposes stricter parsing and error handling.
'use strict';
function example() {
a = 5; // ReferenceError: a is not defined
}