v1
11/11/2022 by nikkypizza -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const str = 'The sunset sets at twelve o clock.The sunset sets at twelve o clock.The sunset sets at twelve o clock.The sunset sets at twelve o clock.';

function reverseStringSplitReverse(str) {
    return str.split("").reverse().join("");
}

function reverseStringFor(str) {
    var newString = "";
    for (var i = str.length - 1; i >= 0; i--) {
        newString += str[i];
    }
    return newString;
}

function reverseStringRecursion(str) {
  if (str === "")
    return "";
  else
    return reverseStringRecursion(str.substr(1)) + str.charAt(0);
}
delete caserun single casemove downdrag and drop case


ready



reverseStringSplitReverse(str)
delete caserun single casemove upmove downdrag and drop case


ready



reverseStringFor(str)
delete caserun single casemove updrag and drop case


ready



reverseStringRecursion(str)
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN