+ 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

16th Aug 2019, 3:09 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
5 Respostas
+ 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
16th Aug 2019, 3:27 PM
Hatsy Rei
Hatsy Rei - avatar
16th Aug 2019, 3:18 PM
Hatsy Rei
Hatsy Rei - avatar
+ 2
Hatsy Rei so all I have to do is to write "use strict" at the beggining of my js rigth?
16th Aug 2019, 3:31 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
Yes. :>
16th Aug 2019, 3:55 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
Hatsy Rei thx for the link, I read about "use strict", but I still don't understand. 😅
16th Aug 2019, 3:23 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar