Typo
This commit is contained in:
parent
9f83b6b445
commit
677cd6633d
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ function showMessage() {
|
||||||
alert(message);
|
alert(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
// the function will create and use it's own userName
|
// the function will create and use its own userName
|
||||||
showMessage();
|
showMessage();
|
||||||
|
|
||||||
alert( userName ); // *!*John*/!*, unchanged, the function did not access the outer variable
|
alert( userName ); // *!*John*/!*, unchanged, the function did not access the outer variable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue