Last active
August 29, 2015 14:20
-
-
Save stonetwig/58c58d20aef06033fbc9 to your computer and use it in GitHub Desktop.
Rövarspråket (Robbers language) encoder
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
(function robbers(encode) { | |
var end = ""; | |
encode.split('').forEach(function (char) { | |
if ('bcdfghjklmnpqrstvwxz'.split('').indexOf(char.toLowerCase()) !== -1) | |
end += char + "o" + char.toLowerCase(); | |
else | |
end += char; | |
}); | |
console.log(end); | |
})("Jag talar Rövarspråket!"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment