+ 4
There is some sort of error in my code.
I didn't saw it, but someone said that there is an error in my code. It says " Uncaught SyntaxError: Block-scoped declaration (let const, funtion, class) not yet supported outside strict mode. " Do you know what could it be? I don't understand. https://code.sololearn.com/W03eX30yy44m/?ref=app
5 Respuestas
+ 2
Feel free to follow the contents of this thread which is relevant to your issues, including what strict mode does. If you can explain what you do not understand, that would be great.
https://stackoverflow.com/questions/33001246/uncaught-syntaxerror-block-scoped-declarations-let-const-function-class-no
+ 3
"use strict";
https://www.w3schools.com/js/js_strict.asp
+ 2
Hatsy Rei so all I have to do is to write "use strict" at the beggining of my js rigth?
+ 2
Yes. :>
+ 1
Hatsy Rei thx for the link, I read about "use strict", but I still don't understand. 😅