mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
typo
This commit is contained in:
parent
432eb6f53d
commit
eafeb3b461
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user