Javascript Tutorial - 5 - Prompt

Loading...

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

Uploaded by on Mar 10, 2008

visit www.thenewboston.com for all my tutorials!

  • likes, 4 dislikes

Link to this comment:

Share to:

Top Comments

  • ("hello "+name+" glad to meet you");

  • ("Hello "+name+" you have a horrible name.")

    This is what he meant to put on the video.

see all

All Comments (120)

Sign In or Sign Up now to post a comment!
  • var name=prompt("What is your name?");

    document.write("Welcome," +name );

  • 240p has never been so GOOD!

  • @toobywedge well I'm only 11 haha, but I should be measured as 17...

  • Here's a cool little multiplying app I made with the stuff Bucky said:

    var name=prompt("What is your name?");

    var num1=prompt("Enter a number");

    var num2=prompt("Enter another number");

    alert("Your aswer is "+num1*num2+", "+name);

  • 42 ftw!!!

  • His real name is Greg Roberts

  • ("Is that a "+obj+" in your pocket or are you just happy to see me?")

  • great tutorials - many thanks Hoss

  • //this is actually a usefull program. (note the e in the answer means "times 10")

    //the 5 in toExponential just means we want to show 5 decimal places of accuracy.

    var x = parseInt(prompt("What is your number? (bigger is better)"))

    var z = (x.toExponential(5))

    alert(x+ " in exponential form is "+z)

  • @austin10123 try tis...

    var num1= prompt("enter your first number"); var num2= prompt ("enter your second number");

    alert(Number(num1) +Number (num2));

    Hope tis help 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