odin-default-js-exercises/reverseString
icorvus de40b279df fixed semicolon 2022-01-23 21:17:39 +01:00
..
README.md Added jest 2021-05-17 23:46:49 +01:00
reverseString.js fixed semicolon 2022-01-23 21:17:39 +01:00
reverseString.spec.js Added jest 2021-05-17 23:46:49 +01:00

README.md

Exercise 03 - Reverse a String

Pretty simple, write a function called reverseString that returns its input, reversed!

reverseString('hello there') // returns 'ereht olleh'

You will notice in this exercise that there are multiple tests, after making the first one pass, enable the others one by one by deleting the .skip in front the test.skip() function.

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.