Skip to content

Commit

Permalink
good use the let
Browse files Browse the repository at this point in the history
  • Loading branch information
MdArmaan143 committed Aug 17, 2024
1 parent c25bce8 commit 5260a01
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Other Style Guides
// good, use the let.
let count = 1;
if (true) {
count += 1;
count++;
}
```
Expand Down Expand Up @@ -543,9 +543,15 @@ Other Style Guides
// bad
const first = arr[0];
const second = arr[1];
const second = arr[2];
const fourth = arr[3];

// good
const [first, second] = arr;
const [first, second,third,fourth] = arr;




```
<a name="destructuring--object-over-array"></a><a name="5.3"></a>
Expand Down

0 comments on commit 5260a01

Please sign in to comment.