When I open the Chrome Developer Tools JavaScript console to get a REPL, the version of JavaScript it uses seems lower than 1.8. let statements, new style functions, etc. give me syntax errors. Is there any way to change the JavaScript version used?
Thanks in advance.
Chrome’s JS engine conforms most closely to ECMAScript 5. The JavaScript version numbering scheme comes from Mozilla, and features such as
letstatements,yield, and others are Mozilla-only extensions to JavaScript.