Skip to content

Commit

Permalink
Update 02 - let VS const.md grammar
Browse files Browse the repository at this point in the history
Improves grammar and fixes use of the word 'scope' when describing the difference between `let` and `const`
  • Loading branch information
stern-shawn committed Oct 11, 2018
1 parent 135318c commit 86c2598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 02 - let VS const.md
@@ -1,6 +1,6 @@
In the last post we learned all about how scoping works with [JavaScript let, const and var variables](http://wesbos.com/javascript-scoping/).

We now know that `var` is **function scope**, and now we know that `let` and `const` are **block scope**. Any time you've got a set of curly brackets, `{ }`, you've got block scope.
We now know that `var` is **function scoped**, and that `let` and `const` are **block scoped**. Any time you've got a set of curly brackets, `{ }`, you've got a block scope.

Now, we need to know **you can only declare a variable inside of its scope once**.

Expand Down

0 comments on commit 86c2598

Please sign in to comment.