- 1

(JS bug) How to turn iff strict mode in JS ?

Unable to try the cide containing let and const data type because it show error of "Uncaught syntax error due to strict mode" Please help !-.-! https://code.sololearn.com/WFTHBu993p2n/?ref=app

6th Apr 2020, 12:52 PM
Abhay
Abhay - avatar
2 Réponses
+ 2
Do your message error exactly end with "... due to strict mode"?! Your code works fine for me... even if I explicitly set the strict mode (wich all the more has no reason to be set implicitly). Maybe your device is a little outdated and doesn't (well?) support 'let' and/or 'const' keywords?
6th Apr 2020, 1:01 PM
visph
visph - avatar
0
Learn webpack, there's a stuff like "babel". It translates new js code to ES2015 version, finally all browsers will maintain your code 😉 have a nice coding!
6th Apr 2020, 6:55 PM
Timur Myngbay
Timur Myngbay - avatar