SOURCE

console 命令行工具 X clear

                    
>
console
(function() {
    var jack = 'Jack';
})();
alert(typeof jack)
<p><b>Question:</b></p>
Why does it alert undefined when I declared the jack variable to be 'Jack'?
<p><b>題目:</b></p>
为什麽提示为"undefined"