Permalink
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 282 Bytes
title layout permalink tags
Js scope
question
js-scope
intermediate hoisting

If we execute this Javascript, what will the browser's console show?

var text = 'outside';
function logIt(){
    console.log(text);
    var text = 'inside';
};
logIt();