Okay, going steady...
Challenge
#3 - Caesar Cipher Translator
This is pretty self-explanatory, but there are going to be A LOT of different interpretations! Last time, not too many people gave their solutions, so this time, please do submit your answers.
Requirements: a function, like last time, which takes 2 parameters: shift (1-25) and string to be encoded. The function needs to output the text with only the letters shifted to the right. The output must conserve casing. All characters that are not a letter (don't ask me questions about this, it's as clear as it gets) remain. So "Hello, World!" becomes Uryyb, Jbeyq!
. I don't care about extra spaces. You can have as many spaces in between as you want. All that gets translated is the letters, OK? It should look like:
function(s,i){/*something*/return r}
Last winner: @Varrience . However, not many people participated, so please do it.
I will be abstaining from this challenge, because reasons. Have fun!