Skip to content

Commit 6558fc8

Browse files
authored
Merge pull request #16 from mhizterkeyz/master
Fix code example
2 parents c29a54e + 0bc4262 commit 6558fc8

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
@@ -166,7 +166,7 @@ function getFruitsCount() {
166166
Sets a variable in a declarative way, with value `A` to value `B`.
167167

168168
```js
169-
const fruits = 0
169+
let fruits = 0
170170

171171
function setFruits(nextFruits) {
172172
fruits = nextFruits
@@ -182,7 +182,7 @@ Sets a variable back to its initial value or state.
182182

183183
```js
184184
const initialFruits = 5
185-
const fruits = initialFruits
185+
let fruits = initialFruits
186186
setFruits(10)
187187
console.log(fruits) // 10
188188

0 commit comments

Comments
 (0)