Guys i was trying to solve Caesar`s cipher and I wrote a perfect code there is one problem making it not work and i will demonstrate it with a simpler code
var str ="abcz"
let x = str.charCodeAt(3);
console.log(x) //=122
if(18<x<121){console.log("Too young")} // it always goes to this function even if i get the code of a,b,c
else if(x>121) {console.log("zaza")} //it never reaches this point
if someone can help explain why this code works like this to me I would be grateful Thanks in advance