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`
This commit is contained in:
pinggod 2016-08-12 11:45:15 +08:00 committed by hemanth.hm
parent b29559cc0b
commit 82e18f311f

View file

@ -177,7 +177,7 @@ As opposed to:
```js
const greeting;
let greeting;
const greet = () => greeting = "Hi, " + window.name;