Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

JavaScript Tutorial 4: If&Else

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,152
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 7, 2010

One of the most useful things to learn in any programming language, javascripts if and else is very similar to all other languages and this is a must-learn for all people interested in working with javascript.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • Hey my names David!!

  • How would i open this with chrom?

see all

All Comments (20)

Sign In or Sign Up now to post a comment!
  • 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...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more