let a = 1 function b() { /* //一 作用域内声明提升 console.log(a)//undefined let a = 2 */ //二 console.log(a)//1 a = 2 } b()