单项选择题
var hel="hello"; (function(){ var word="World"; console.log(hel+word); })();以上代码最后一次打印的结果是( )
A.helloWorld B.undefined C.程序报错bar is not defined D.null
A.foo函数存在函数提升 B.在函数内部的a变量存在变量提升 C.打印的结果是2 D.打印的结果是undefined
A.undefined 2 B.2 undefined C.undefined D.2