Created
December 6, 2014 19:19
-
-
Save DFOXpro/f5c254926d4da9aacc2d to your computer and use it in GitHub Desktop.
3 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
/* | |
* Author: Daniel Zorro @DFOXpro | |
* Licence: WTF-PL | |
*/ | |
var main = function(value){ | |
var i = 0; | |
var r = ""; | |
while(i < value.length){ | |
r+= value[value.length - (1+i)]; | |
i++; | |
}; | |
return r; | |
}; | |
console.log(main("esfero trololo")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment