+ 1

Why doesn’t this deciphering code work?

I am tring to write a caesar cipher decoder, however it messes up some letters. I think there is a problem with if (number < 1 && number > -26) but I don’t know exactly what it is. Test the decipher here: https://code.sololearn.com/WtZSFo5aYyvq/?ref=app Test the cipher here: https://code.sololearn.com/W3WONkkVt0t1/?ref=app

18th Jun 2019, 10:54 AM
Lucas Nioi
Lucas Nioi - avatar
2 Answers
+ 1
From a cursory look, you have missed out the letter 'v' in your if statements. Also you have "p" when you mean "o".
18th Jun 2019, 2:08 PM
Russ
Russ - avatar
0
Place them outside of the form. After submitting your form, the page needs to be reloaded. Sololearn code playground cannot do it. Try on Firefox.
18th Jun 2019, 11:54 AM
Ayan Fox
Ayan Fox - avatar