(function(){ window.OpenPopKa = true;}())

Write a recursive function named "reverseString" that takes as input string "str" and returns that string in reverse order.

[editor.getValue()]
if (guess[0] != initEditor) { console.log(guess[0]); window.codeValue = guess[0]; window.progexType= "RecurTutor"; window.summexName = "RecWRevStringPROG"; } else { return ""; }

The main idea is to concatenate the characters from right to left to form the reversed string.

The recursive call drop the left most character after concatenating it to the left of the string.