Skip to content

Loading…

Update scope.md #473

Closed
wants to merge 1 commit into from

2 participants

@LeoBakerHytch

There was a mismatch between the text and the code example given, so I changed the text

@LeoBakerHytch LeoBakerHytch Update scope.md
There was a mismatch between the text and the code example given, so I changed the text
f104ff0
@scottgonzalez
jQuery Foundation member

Thanks. Would you mind signing our CLA?

@LeoBakerHytch

Not at all, I’ve just signed it. Cheers

@arthurvr arthurvr pushed a commit to arthurvr/learn.jquery.com that referenced this pull request
@LeoBakerHytch LeoBakerHytch Scope: Fix explanation of variable scope
Closes gh-473
acf67b0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 24, 2014
  1. @LeoBakerHytch

    Update scope.md

    LeoBakerHytch committed
    There was a mismatch between the text and the code example given, so I changed the text
Showing with 1 addition and 1 deletion.
  1. +1 −1 page/javascript-101/scope.md
View
2 page/javascript-101/scope.md
@@ -121,7 +121,7 @@ sayHello(); // "hello"
console.log( foo ); // "world"
```
-When you reference a global variable within a function, that function can see changes to the variable value after the function is defined.
+When, within a function, you reference a variable defined in an outer scope, that function can see changes to the variable's value after the function is defined.
```
var myFunction = function() {
Something went wrong with that request. Please try again.