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.
function sayHelloInFiveSeconds(name){
var prompt = "Hello, " + name + "!";
// Inner functions are put in the local scope local by default, as if they
// were declared with 'var'.
// Inner functions are put in the local scope by default, as if they were
// declared with 'var'.
function inner(){
alert(prompt);
}