+ 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
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".
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.



