错误信息:Identifier 'age' has already been declared
翻译: 标识 age 已经 被 声明
原因:age你重复定义了
错误信息:Invalid left-hand side in assignment
翻译: 无效的 左手 边 在 赋值
原因:左边不是一个变量,赋值时左边一定要是一个变量
错误信息:let is disallowed as a lexically bound name
翻译:let 不被允许 做为 词法范围内的 名字
原因:变量名称是关键字
错误信息:Age is not defined
翻译:Age 没有定义
原因:Age真的没有定义,你定义了但是名称写错了,你定义了但是定义的位置有问题,造成无法使用结论:如果访问一个没有定义的变量则报上述错误
错误信息:Cannot read properties of undefined (reading 'toString')
翻译: 不能够 读取 属性 undefined 的 读取toString:不能使用undefined读取成员
原因:读取toString的对象是undefined
错误信息: Cannot read properties of null (reading 'toString') 翻译: 不能够 读取 属性 undefined 的 读取toString:不能使用null读取成员 原因:读取toString的对象是null