This commit is contained in:
Brent Guffens 2018-01-18 18:05:58 +01:00 committed by GitHub
parent 9f83b6b445
commit 677cd6633d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ function showMessage() {
alert(message);
}
// the function will create and use it's own userName
// the function will create and use its own userName
showMessage();
alert( userName ); // *!*John*/!*, unchanged, the function did not access the outer variable