mirror of
https://github.com/kettanaito/naming-cheatsheet.git
synced 2025-08-11 23:49:10 +02:00
Fix code example
This commit is contained in:
@ -166,7 +166,7 @@ function getFruitsCount() {
|
|||||||
Sets a variable in a declarative way, with value `A` to value `B`.
|
Sets a variable in a declarative way, with value `A` to value `B`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const fruits = 0
|
let fruits = 0
|
||||||
|
|
||||||
function setFruits(nextFruits) {
|
function setFruits(nextFruits) {
|
||||||
fruits = nextFruits
|
fruits = nextFruits
|
||||||
|
Reference in New Issue
Block a user