maybe it's just a typo and my eyes are too tired to see it, but when the condition meets the first else statement ( if ( loveScore > 80)) condition, the else statement runs right after... With the other if statements, I'm not having this issue. Anyone has an idea of what I did wrong?
if (loveScore > 80) {
alert("Your score is " + loveScore + "% ! Jeez, you love eachother like I love cheese!")
}
if (loveScore > 50 && loveScore < 80) {
alert("Your score is " + loveScore + "% ! Can't garantie you'll end up married, but you'll
have a good time while it lasts...")
}
if (loveScore > 20 && loveScore < 50) {
alert("Your score is " + loveScore + "! Take the cat and leave")
}
else {
alert("Your score is " + loveScore + "%. You go together like oil and water, smh")
}
Aucun commentaire:
Enregistrer un commentaire