commit
16e09cf745
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:
|
For convenience let's split it into multiple lines:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
let sorted = arr[i] // PAN
|
let sorted = word // PAN
|
||||||
.toLowerCase() // pan
|
.toLowerCase() // pan
|
||||||
.split('') // ['p','a','n']
|
.split('') // ['p','a','n']
|
||||||
.sort() // ['a','n','p']
|
.sort() // ['a','n','p']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue