How To Solve Your Problems

Photo by Roman Mager on Unsplash
  1. Understand the Problem
Photo by Lagos Techie on Unsplash
  1. Break input into an array with .split(‘’);
  2. Reverse array with .reverse();
  3. Turn array back into a string with .join(‘’);
  4. Return the string
Photo by Erwan Hesry on Unsplash

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store