This commit is contained in:
cubuspl42 2013-12-14 14:44:06 +01:00
parent 432eb6f53d
commit eafeb3b461

View File

@ -271,8 +271,8 @@ permanent; // = 10
// outer function's variables, even after the outer function exits. // outer function's variables, even after the outer function exits.
function sayHelloInFiveSeconds(name){ function sayHelloInFiveSeconds(name){
var prompt = "Hello, " + name + "!"; var prompt = "Hello, " + name + "!";
// Inner functions are put in the local scope local by default, as if they // Inner functions are put in the local scope by default, as if they were
// were declared with 'var'. // declared with 'var'.
function inner(){ function inner(){
alert(prompt); alert(prompt);
} }