Last active
April 7, 2016 05:59
-
-
Save mmloveaa/f59c0eb0515d84dcbbaa92090f9946eb to your computer and use it in GitHub Desktop.
4-6 Decoder
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
function decoder(key,code){ | |
return code.map(function(val){ | |
return key[val]; | |
}).join(''); | |
} | |
decoder("ABCDEFGHIJKLMNOPQRSTUVWXYZ",[2, 14, 3, 8, 13, 6]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment