Hi everyone, new here
so i have an issue, im supposed to try and find the password from the following code. i understand i need to use the ascii table but im a little bit confused, i would appreciate any help!
<script>
var pass = [];
$("#search").click(function () {
for(item of password.value)
{
if (item.charCodeAt(0) % 2 == 0){
pass.push(item.charCodeAt(0)+3)
}else{
pass.push(item.charCodeAt(0)-1)
}
}
if (String.fromCharCode(...pass) == "leet"){
alert("you rock");
}
else
{
alert("try again... ");
}
});
</script>
```