Travis build: 391

This commit is contained in:
Travis CI
2017-12-28 08:30:19 +00:00
parent 294a22ea5e
commit 203edf9ba2
141 changed files with 1389 additions and 1044 deletions

View File

@ -6,9 +6,13 @@ Use `split('')` and `Array.reverse()` to reverse the order of the characters in
Combine characters to get a string using `join('')`.
```js
const reverseString = str => str.split('').reverse().join('');
const reverseString = str =>
str
.split('')
.reverse()
.join('');
```
```js
reverseString('foobar') // 'raboof'
reverseString('foobar'); // 'raboof'
```