Get Programming with JavaScript - Listing 11.04
Listing 11.04 - A variable hidden from the console
var hide = function () {
var mountain = "Devils Tower";
};
console.log(mountain);
Further Adventures
Listing 11.04 - A variable hidden from the console - Task 3
- Return the value of mountain from the hide function.
var hide = function () {
var mountain = "Devils Tower";
return mountain;
};