mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
11 lines
382 B
Markdown
11 lines
382 B
Markdown
# Exercise 03 - Reverse a String
|
|
|
|
Pretty simple, write a function called `reverseString` that returns its input, reversed!
|
|
|
|
```javascript
|
|
reverseString('hello there') // returns 'ereht olleh'
|
|
```
|
|
|
|
## Hints
|
|
Strings in JavaScript cannot be reversed directly so you're going to have to split it into something else first.. do the reversal and then join it back together into a string.
|