+ 1
How to make code with which a secret message could be input
For e.g. changing every word to its backward word like a word (A) becomes Z and B becomes A Please tell how to make such code in JS
1 Antwort
0
Solidify your hidden message concept first.
Then coding goes next.
There are ways you can achieve this output.
One way is to create 2 arrays of alphabet.
1 for the original alphabet and another one for hidden message alphabet.
Create an array of char based on the user's input. Get the index of eact letter in the alphabet and replace it with the corresponding char in the hidden message alphabet.
Happy coding!