Skip to content

Commit a16a17b

Browse files
committed
ReferenceError on calling statement
Declaring statement will not be raised any error.
1 parent e712b33 commit a16a17b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ block-scoped identifiers before they are defined will produce
6868
a `ReferenceError`.
6969

7070
```javascript
71-
console.log(x);
71+
console.log(x); // ReferenceError: x is not defined
7272

73-
let x = 'hi'; // ReferenceError: x is not defined
73+
let x = 'hi';
7474
```
7575

7676
> **Best Practice**: Leave `var` declarations inside of legacy code to denote

0 commit comments

Comments
 (0)