Last active
June 26, 2019 16:59
-
-
Save bariscanyilmaz/53b4e1977253dd56f9eece4f144bbd16 to your computer and use it in GitHub Desktop.
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
module.exports=(arg)=>{ | |
const str= arg.toString(); | |
let newStr=""; | |
for (let index = str.length-1; index >= 0; index--) { | |
newStr += str[index]; | |
} | |
return newStr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment