0

Please stuck in if statment not loading helppp!!

javascript

14th Jul 2019, 7:03 PM
Toluwani Daniel
Toluwani Daniel - avatar
5 Respuestas
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?
14th Jul 2019, 7:10 PM
Roolin
Roolin - avatar
0
Var person="Dr day"; if (person == "Dr day") { alert ("Hello Dr!!!"); } THANKS
14th Jul 2019, 7:15 PM
Toluwani Daniel
Toluwani Daniel - avatar
0
noy running pls anything wrong
14th Jul 2019, 7:15 PM
Toluwani Daniel
Toluwani Daniel - avatar
0
Mean "not"sorry
14th Jul 2019, 7:19 PM
Toluwani Daniel
Toluwani Daniel - avatar
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 :)
14th Jul 2019, 7:29 PM
Roolin
Roolin - avatar