Binary_CoderLvl 2
- Edited
Edit: new function uses 182 characters, matching @ackvonhuelio’s response.
function c(s,k){t="";for(i=0;i<s.length;i++){n=s.charCodeAt(i);x=n;if((n>64&&n<91)||(n>96&&n<123)){x+=k;x-=26*(n<91&&x>90);x-=26*(n<123&&x>122);}t+=String.fromCharCode(x);}throw t;}
Also, I made a leaderboard to keep track of who’s winning.