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:
parent
e515f80a9f
commit
183d87b707
1 changed files with 1 additions and 1 deletions
|
@ -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']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue