Update solution.md

Changed the reference to each item of the array since it was previously defined as the variable word.
This commit is contained in:
Space Invadev 2019-11-18 12:50:57 -05:00
parent e515f80a9f
commit 183d87b707

View file

@ -36,7 +36,7 @@ Letter-sorting is done by the chain of calls in the line `(*)`.
For convenience let's split it into multiple lines:
```js
let sorted = arr[i] // PAN
let sorted = word // PAN
.toLowerCase() // pan
.split('') // ['p','a','n']
.sort() // ['a','n','p']