Last active
December 26, 2015 09:48
-
-
Save thetallweeks/7131697 to your computer and use it in GitHub Desktop.
Coderbyte Reverse string Challenge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://coderbyte.com/CodingArea/GuestEditor.php?ct=First%20Reverse&lan=JavaScript | |
function FirstReverse(str) { | |
var string = []; | |
for(i = 0; i <= str.length; i++) { | |
string[i] = str[str.length - i]; | |
} | |
// code goes here | |
return string.join(""); | |
} | |
// keep this function call here | |
// to see how to enter arguments in JavaScript scroll down | |
FirstReverse(readline()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment