Skip to content

Latest commit

 

History

History
 
 

reverseAString

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Check Out My YouTube Channel

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()