Why does the function only return a value after running a second time, even though console.log returns the value?

前端 未结 0 544
無奈伤痛
無奈伤痛 2021-01-25 07:38

Trying to get an understanding of hoisting in JS and can\'t seem to understand how hoisting and global/local variables are working in this simple function.

let x          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题