Permalink
Browse files

Removed unnecessary semicolons

  • Loading branch information...
joncameron authored and eddiemonge committed Jun 6, 2013
1 parent 1abf45e commit 1458b4ac15c2ec9cb6d87c608eb4b90ae1a0ced7
Showing with 2 additions and 2 deletions.
  1. +2 −2 page/javascript-101/scope.md
@@ -27,7 +27,7 @@ JavaScript also creates a __Local Scope__ inside each function body. For example
```
function myFunc() {
var x = 5;
-};
+}
console.log( x ); // ReferenceError: x is not defined
```
@@ -41,7 +41,7 @@ If you declare a variable and forget to use the `var` keyword, that variable is
```
function myFunc() {
x = 5;
-};
+}
console.log( x ); // 5
```

0 comments on commit 1458b4a

Please sign in to comment.