Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 301 Bytes

File metadata and controls

15 lines (8 loc) · 301 Bytes

JS Reverse String

Requirement

Create a method reverseString(str) that takes in a string str as a parameter and returns the value of str reversed.

Examples

Input1: reverseString("Hello");

Output1: "olleH"

Input2: reverseString("SuperDeeDuper");

Output2: "repuDeeDrepuS"