mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-06 02:26:43 +00:00
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:
parent
b29559cc0b
commit
82e18f311f
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ As opposed to:
|
|||
|
||||
```js
|
||||
|
||||
const greeting;
|
||||
let greeting;
|
||||
|
||||
const greet = () => greeting = "Hi, " + window.name;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue