📜  SyntaxError: let 不允许作为词法绑定名称 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:30.650000             🧑  作者: Mango

代码示例1
If you are separating your declarations with commas, you should not repeat...
..."let" either remove let from each declaration, or use semi-colons instead.

Example:

let a = {}, b = 5, c = function(){}; // OK
let a = {}; let b = 5; // OK
let a = {}, let b = 5; //Not OK -- error