函数提升优先级比变量提升要高,且不会被变量声明覆盖,但是会被变量赋值覆盖
console.log(a)
var a
console.log(a)
a=10
console.log(a)
function a() {
}
console.log(b)
function b() {
}
var b = 9
console.log(b)
console.log(a)