(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

4/6/2020 12:52:10 PM


2 Answers

New Answer


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?


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!