Skip to content

Files

Latest commit

 

History

History

Reverse-A-String-FCC

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Reverse a string (taken from FreeCodeCamp - Basic Algorithms)

Instructions

  • 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.

Test Scenarios

  • reverseString("hello") should return a string.
  • reverseString("hello") should become "olleh"
  • reverseString("Howdy") should become "ydwoH"
  • reverseString("Greetings from Earth") should return "htraE morf sgniteerG"