Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.

Commit 9375fb5

Browse files
robinpokornyljharb
authored andcommitted
[guide] Use const when not reassigning reference
1 parent e22f02c commit 9375fb5

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
@@ -1588,7 +1588,7 @@ Other Style Guides
15881588
```javascript
15891589
// bad
15901590

1591-
let array = [1, 2, 3];
1591+
const array = [1, 2, 3];
15921592
let num = 1;
15931593
num++;
15941594
--num;
@@ -1605,7 +1605,7 @@ Other Style Guides
16051605

16061606
// good
16071607

1608-
let array = [1, 2, 3];
1608+
const array = [1, 2, 3];
16091609
let num = 1;
16101610
num += 1;
16111611
num -= 1;

0 commit comments

Comments
 (0)