0
Please stuck in if statment not loading helppp!!
javascript
5 Réponses
0
Could you post the code or a screenshot of it? I don't fully understand what you mean when you are saying that an if-statement is not loading?
0
Var person="Dr day";
if (person == "Dr day") {
alert ("Hello Dr!!!");
}
THANKS
0
noy running pls anything wrong
0
Mean "not"sorry
0
Try to change "Var" to "var". Javascript is case-sensitive, so it does not understand that person is supposed to be a variable, and therefore the if-statement is not finding any variable with that value. I hope this fixes your problem! Feel free to message me if you are wondering about anything else :)