Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-30 18:34:36 +02:00
parent ae1828e42f
commit fab0a7fa3b
6 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@ lastUpdated: 2020-10-18T14:58:09+03:00
Reverses a string.
- Use the spread operator (`...`) and `Array.prototype.reverse()` to reverse the order of the characters in the string.
- Combine characters to get a string using `String.prototype.join('')`.
- Combine characters to get a string using `String.prototype.join()`.
```js
const reverseString = str => [...str].reverse().join('');