Skip to content

Instantly share code, notes, and snippets.

@jlmferreira
Created July 20, 2012 18:52
Show Gist options
  • Save jlmferreira/3152553 to your computer and use it in GitHub Desktop.
Save jlmferreira/3152553 to your computer and use it in GitHub Desktop.
The Decoder - Write a complete program that will correctly decode a set of characters into a valid message. Your program should read a given file of a simple coded set of characters and print the exact message that the characters contain. The code key for
function decoder(palavra){
char='';
for (i=0;i<palavra.length;i++){
char+=String.fromCharCode(palavra.charCodeAt(i)-7);
}
print(char);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment