• Thursday , 14 December 2017

Javascript Tutorial – 5 – Prompt

Code Canyon



Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts

Original source

3d Ocean

Related Posts

48 Comments

  1. Harie Amjari
    May 21, 2017 at 22:03

    So how do i send the text entered by a user and then they automatically post in newsfeed?

  2. Luis
    May 21, 2017 at 22:03

    thank you very much bro <3, regards from Venezuela

  3. Jeremy Ford
    May 21, 2017 at 22:03

    I love ya bucky!
    I would love to have a beer with ya man, call me lol

  4. Peter Plot
    May 21, 2017 at 22:03

    Are you spelling prompt right?

  5. Landon Hughes
    May 21, 2017 at 22:03

    I wanted to learn Java to program apps for android and I found it to be difficult. I wanted to learn how to design websites so I had to learn Javascript, which is why I am here. This ties up ALOT of the loose strings that I had in Java. They have alot of the same concepts. Thank you for your tutorials! I subscribed!

  6. Oliver Warner
    May 21, 2017 at 22:03

    Promt box

  7. Oliver Warner
    May 21, 2017 at 22:03

    Im using prompt but i get no primpt box!

  8. dan1337
    May 21, 2017 at 22:03

    I am the 75000th viewer :D, keep up the good work bro

  9. Joshua Avila
    May 21, 2017 at 22:03

    Codeacademy is good for learning and writing scripts. Just google codacademylabs

  10. Mona Sharma
    May 21, 2017 at 22:03

    if you can't appreciate just keep quiet

  11. ANIS MAIZA
    May 21, 2017 at 22:03

    HEllo Mike Jones

  12. fiboribo
    May 21, 2017 at 22:03

    Thanks! I really like your pacing. Not too fast, not too slow. Just right!

  13. Feroz rj
    May 21, 2017 at 22:03

    [check box] Prevent this page from creating additional dialogs

    i got fed up with this prompt

  14. Feroz rj
    May 21, 2017 at 22:03

    var name=prompt("what is ur name?");
    alert ("hello" +name);

    output : hello abc
    [check box] Prevent this page from creating additional dialogs
    how to overcome this additonal prompt ?

  15. Alastair Heath
    May 21, 2017 at 22:03

    var f1=prompt("Your name please");
    var f2=prompt("Now your age");
    var f3=prompt("What is your favorite movie?");
    var f4=(f2*365);
    var f5=(f2*365/7);
    alert("Hello "+f1+", you are "+f2+" years old and you like the movie "+f3+". You were born "+f4+" days/"+f5+" weeks ago");

  16. Fracto
    May 21, 2017 at 22:03

    var name=prompt("What is your name?");
    document.write("Welcome," +name );

  17. Nevin Rowan
    May 21, 2017 at 22:03

    240p has never been so GOOD!

  18. UltraDrago2000
    May 21, 2017 at 22:03

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

  19. Aaron Johnson
    May 21, 2017 at 22:03

    42 ftw!!!

  20. Chuk Prav
    May 21, 2017 at 22:03

    His real name is Greg Roberts

  21. Braden Best
    May 21, 2017 at 22:03

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

  22. Kieran Kelly
    May 21, 2017 at 22:03

    great tutorials – many thanks Hoss

  23. vodkacannon
    May 21, 2017 at 22:03

    //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)

  24. IPurplePro
    May 21, 2017 at 22:03

    var name=prompt("what is ur name?");
    alert("fuck you "+name);

    😛

  25. COFFEE DELTA
    May 21, 2017 at 22:03

    Ok, It's very good to learn JV tutorial here on youtube.com. Thanks Mr.Scott

  26. COFFEE DELTA
    May 21, 2017 at 22:03

    Case *,-,/ is very good but case + doesn't work!

  27. l0lxlllxl0l
    May 21, 2017 at 22:03

    @austin10123 same thing happens to me 🙁

  28. austin10123
    May 21, 2017 at 22:03

    When I do addition, It doesnt add the two numbers, it just puts them next to eachother. Any help?

  29. djhiphop23
    May 21, 2017 at 22:03

    @xXMikeScottXx I get an error everytime I try this 🙁

  30. RASHTG
    May 21, 2017 at 22:03

    JavaScript uses the same logic as Java!

  31. vodkacannon
    May 21, 2017 at 22:03

    @BraveMeat, well once you get your website online you would have to set up a cgi bin to collect the data and store it on your server. Then you can open up the file and see the data. This does require extra coding outside of javascript.

  32. vodkacannon
    May 21, 2017 at 22:03

    The only problem with using parseInt means we're parsing an integer. So you can't do decimals.
    instead of using parseInt(prompt("Enter num1"));
    You can do parseFloat. This allows you to used values like 4, 0.5, and -34.5.

  33. Ahmad Zarif
    May 21, 2017 at 22:03

    So if i create some fake website and i do javascript prompt for the victim to enter the password.Will it he save the password?

  34. Lani Pie
    May 21, 2017 at 22:03

    @stumblinbear I'm 16 and I love them too ^^

  35. stumblinbear
    May 21, 2017 at 22:03

    the prompt command doesn't work for me.
    prompt("What is your name?");

  36. stumblinbear
    May 21, 2017 at 22:03

    @gmaninthusa I love javascript html php css vb6 C++ and html and i am only 14!

  37. Numberidge
    May 21, 2017 at 22:03

    @thenewboston Hey I have a good question! Did you code your website? 😀

  38. toobywedge
    May 21, 2017 at 22:03

    @gmaninthusa i love javascript and im only 12

  39. Nobbs66
    May 21, 2017 at 22:03

    i love javascript and im only 14

  40. لا اله الا الله
    May 21, 2017 at 22:03

    very very very and very thanks:)

  41. truthIsStranger
    May 21, 2017 at 22:03

    If you agree that jQuery should be standard learning, please consider plussing this comment and help others see this link. : )

    watch?v=Hk5oXFtYLw

    "jquery for absolute beginners"

    but don't stop watching this series, either. You'll need both series. : )

    Libraries like jQuery and Prototype are the future of JS.

  42. anonymous7129152938
    May 21, 2017 at 22:03

    Nice and simple!

  43. Francis Letiec
    May 21, 2017 at 22:03

    @peterhea222 check xxmikescottxx comment

  44. T1melimit
    May 21, 2017 at 22:03

    Is it possible to do what you did at the end of the video with addition?
    I tried
    var num1=prompt("number one here");
    var num2=prompt("number two here");
    alert(num1+num2)

    Let's say num1 is 2 and num2 is 3, it comes out as 23. How to fix?

  45. Francis Letiec
    May 21, 2017 at 22:03

    @mimpf96 alert((num1+num2));

  46. Francis Letiec
    May 21, 2017 at 22:03

    @peterhea222 (2 + 2)

  47. aekara1987
    May 21, 2017 at 22:03

    Nice Video. I have a question though. As many of you have seen when you enter your routers home page (192.168.0.1 for example) a window appears that requires you to enter both user name and password. How does this happens? As i know you can have more than one input in a prompt

  48. Raj Negi
    May 21, 2017 at 22:03

    @xXMikeScottXx – hey thanx bro! for that "parse" thing. Liked it

Leave A Comment

You must be logged in to post a comment.