/* Sign up for YaadCode - Live FreeCode Camp Coding Sessions Twice Weekly on Skype You may join the FreeCodeCamp, Kingston Group here: https://www.facebook.com/groups/free.code.camp.kingston.jamaica/ https://www.freecodecamp.org/challenges/reverse-a-string */ function reverseString(str) { var chars = str.split(""); chars.reverse(); newStr = chars.join(""); return newStr; } reverseString("hello"); //Expected Output: "olleh"