在 JavaScript 编程中,会遇到多种类型的错误,每种错误都有其特定的产生原因和错误提示信息。
SyntaxError
// 缺少括号 let x = 1 +; // 报错: Uncaught SyntaxError: Unexpected end of input
在这个例子中,1 +;
1 +;