Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript Strict Mode in Variable

console.log("some code");

// 'use strict' is ignored
// must be at the top
"use strict";

x = 21; // does not throw an error
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #Strict #Mode #Variable
ADD COMMENT
Topic
Name
1+3 =