Merge pull request #1614 from spaceinvadev/master

Update solution.md
This commit is contained in:
Ilya Kantor 2019-11-30 09:56:32 +03:00 committed by GitHub
commit 16e09cf745
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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']