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
}

Questions & Answers Related

No Q&A available for this topic.