+ 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

23rd Jul 2020, 1:48 AM
Raghu Rao
Raghu Rao - avatar
1 Resposta
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!
23rd Jul 2020, 3:38 AM
Jay Gilbert Garzon
Jay Gilbert Garzon - avatar