From 06d3336f1af8d385d0f0c5dcb7f51be365b7c585 Mon Sep 17 00:00:00 2001 From: mhizterkeyz <38281402+mhizterkeyz@users.noreply.github.com> Date: Sun, 17 Jan 2021 14:32:19 +0100 Subject: [PATCH 1/2] Fix code example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7eae88c..1ef68a0 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ function getFruitsCount() { Sets a variable in a declarative way, with value `A` to value `B`. ```js -const fruits = 0 +let fruits = 0 function setFruits(nextFruits) { fruits = nextFruits From 0bc42620b9406dd5a9d427e4869e91ecda656dd4 Mon Sep 17 00:00:00 2001 From: mhizterkeyz <38281402+mhizterkeyz@users.noreply.github.com> Date: Sun, 17 Jan 2021 14:39:09 +0100 Subject: [PATCH 2/2] syntax fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ef68a0..0380b3a 100644 --- a/README.md +++ b/README.md @@ -182,7 +182,7 @@ Sets a variable back to its initial value or state. ```js const initialFruits = 5 -const fruits = initialFruits +let fruits = initialFruits setFruits(10) console.log(fruits) // 10