Get Programming with JavaScript - Listing 11.05
Listing 11.05 - The variable is visible within the function
var show = function () {
var mountain = "Devils Tower";
console.log(mountain);
};
show();
var show = function () {
var mountain = "Devils Tower";
console.log(mountain);
};
show();