Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
98
rated 0 times [  100] [ 2]  / answers: 1 / hits: 161146  / 9 Years ago, wed, october 7, 2015, 12:00:00

This error pops up on my JS console in the browser, and I'm not sure how to interpret the message. Can anyone describe what causes this?



Thanks


More From » javascript

 Answers
3

This means that you must declare strict mode by writing use strict at the beginning of the file or the function to use block-scope declarations.



EX:



function test(){
use strict;
let a = 1;
}

[#64805] Monday, October 5, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
karivictoriab

Total Points: 530
Total Questions: 90
Total Answers: 95

Location: Honduras
Member since Sun, Dec 26, 2021
2 Years ago
;