Created
January 31, 2022 14:38
-
-
Save dag7dev/e9806d092d81706bb295fccd70690d1f to your computer and use it in GitHub Desktop.
Dumb translating function
This file contains 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
// this function is used by a bad script who obfuscates code --> I made it more readable | |
var finalString = ''; | |
for(var i=0; i<word['length']; i++) { | |
if(i%2) { | |
finalString = word['substr'](i, 1) + finalString; | |
} | |
} | |
return finalString; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment