Skip to content

Instantly share code, notes, and snippets.

@dag7dev
Created January 31, 2022 14:38
Show Gist options
  • Save dag7dev/e9806d092d81706bb295fccd70690d1f to your computer and use it in GitHub Desktop.
Save dag7dev/e9806d092d81706bb295fccd70690d1f to your computer and use it in GitHub Desktop.
Dumb translating function
// 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