Skip to content

Commit

Permalink
Merge pull request freeCodeCamp#9763 from jaikamat/fix/global-scope-w…
Browse files Browse the repository at this point in the history
…ording

Fixed wording in Global Scope and Functions challenge instructions
  • Loading branch information
erictleung authored Jul 17, 2016
2 parents 75bba05 + 1a50fcb commit 4f49fbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2203,7 +2203,7 @@
"In JavaScript, <dfn>scope</dfn> refers to the visibility of variables. Variables which are defined outside of a function block have <dfn>Global</dfn> scope. This means, they can be seen everywhere in your JavaScript code.",
"Variables which are used without the <code>var</code> keyword are automatically created in the <code>global</code> scope. This can create unintended consequences elsewhere in your code or when running a function again. You should always declare your variables with <code>var</code>.",
"<h4>Instructions</h4>",
"Declare a <code>global</code> variable <code>myGlobal</code> outside of any function. Initialize it to have a value of <code>10</code> ",
"Using <code>var</code>, declare a <code>global</code> variable <code>myGlobal</code> outside of any function. Initialize it with a value of <code>10</code>.",
"Inside function <code>fun1</code>, assign <code>5</code> to <code>oopsGlobal</code> <strong><em>without</em></strong> using the <code>var</code> keyword."
],
"releasedOn": "January 1, 2016",
Expand Down

0 comments on commit 4f49fbd

Please sign in to comment.