JavaScript Tutorial 4: If&Else
Loading...
2,152
Loading...
Top Comments
see all
All Comments (20)
-
I recommend after you set the variable. var name = prompt("Please enter your name"); , Go ahead and put name = name.toLowerCase(); So it doesn't matter the case which is entered because you are making it all lowercase and make sure you change the if statement to if(name == "ryan") instead of "Ryan"
-
Thanks i was able to prank my friands with this
-
@ssibi100 No, because we are checking for "Ryan" not "ryan".
-
cool tutorials fogtalk 97%
-
will it work if we type "ryan" instead of "Ryan"
-
man i love these
-
These are "BASIC" statement
-
you own thnx
-
i copied the coding eactly as you put it but when i type the wrong name the else message doesn't pop u?
Loading...
Hey my names David!!
d1995a3 1 year ago 9
How would i open this with chrom?
UltraPcGamer101 10 months ago 3