Skip to content

Commit 82e18f3

Browse files
pinggodhemanth
authored andcommitted
Update the code snippet of purity (#99)
a). Initialization is a essential operation in `const` declaration b). `let` is more accurate to express `mutable state`
1 parent b29559c commit 82e18f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ As opposed to:
177177

178178
```js
179179

180-
const greeting;
180+
let greeting;
181181

182182
const greet = () => greeting = "Hi, " + window.name;
183183

0 commit comments

Comments
 (0)