When using nodejs to test es6, es6 cannot be compiled normally. Some new features of es6 always report errors.
The following is the version of node on my computer
let a = 10; console.log(a);
Error reporting screenshot
To solve this is to ask What?
Run directly in strict mode, mine is 4.2 can: