Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 392 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 392 Bytes

Check Out More Algorithms like this at FreeCodeCamp


Reverse the provided string.

You may need to turn the string into an array before you can reverse it.

Your result must be a string.

Example

  • reverseAString('hello') returns 'olleh';
  • reverseAString('Howdy') returns 'ydwoH';

Hints

  • join()
  • split()
  • reverse()