if statement not working when i try to use it in my code to check a variable
i am trying to detect what the variable is but it is not working
var question = prompt("press 1 for hi logged in console and press anything else for goodbye logged in console")
if (question ===1
) {
console.log("hi")
}else{
console.log("goodbye")
}
Aucun commentaire:
Enregistrer un commentaire