在这段简单的代码中,由于变量b是一个let变量,并且我正在try 记录()它的值,因此我预计会出现一个引用错误:在初始化之前无法访问‘a’,
但我得到的却是这样的错误: Uncaught ReferenceError: a is not defined个
console.log(a);
let a=10;
var b=19;
a screenshot of the code and the error-->个
我在在线js编辑器中运行了相同的代码,他们给出了预期的错误,我现在感到困惑: the same code on an online editor with different error个