下面的代码给出了输出undefined。我的印象是所有变量和函数声明都被提升到其作用域的顶部,因此b现在应该在调用a(). 但是,我仍然得到undefined作为我的输出?a()var b = 5;function a() { console.log(b)} 查看完整描述