Open this example in the interactive library
Source code
function inspect() {
console.log(stage);
var stage = "packed";
return stage;
}
console.log(inspect());
Sample output
undefined packed

Open this example in the interactive library
function inspect() {
console.log(stage);
var stage = "packed";
return stage;
}
console.log(inspect());
undefined packed