Skip to content

Commit 1458b4a

Browse files
joncameroneddiemonge
authored andcommitted
Removed unnecessary semicolons
1 parent 1abf45e commit 1458b4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

page/javascript-101/scope.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ JavaScript also creates a __Local Scope__ inside each function body. For example
2727
```
2828
function myFunc() {
2929
var x = 5;
30-
};
30+
}
3131
3232
console.log( x ); // ReferenceError: x is not defined
3333
```
@@ -41,7 +41,7 @@ If you declare a variable and forget to use the `var` keyword, that variable is
4141
```
4242
function myFunc() {
4343
x = 5;
44-
};
44+
}
4545
4646
console.log( x ); // 5
4747
```

0 commit comments

Comments
 (0)