codingforeveryone/js

new-member-9

Closed this issue · 1 comments

tas12 commented

Monoalphabetic substitution cipher

Write a function subCipher that takes a string and replaces each letter with the next letter in the alphabet. Letters in the encoded string should be in uppercase.

Example:

subCipher("welcome to the group!");  //returns "XFMDPNF UP UIF HSPVQ!"

Repl.it is a good place to try out your code.

tas12 commented

Solved by @thevjm