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
48 responses to “Javascript Tutorial – 5 – Prompt”
So how do i send the text entered by a user and then they automatically post in newsfeed?
thank you very much bro <3, regards from Venezuela
I love ya bucky!
I would love to have a beer with ya man, call me lol
Are you spelling prompt right?
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!
Promt box
Im using prompt but i get no primpt box!
I am the 75000th viewer :D, keep up the good work bro
Codeacademy is good for learning and writing scripts. Just google codacademylabs
if you can't appreciate just keep quiet
HEllo Mike Jones
Thanks! I really like your pacing. Not too fast, not too slow. Just right!
[check box] Prevent this page from creating additional dialogs
i got fed up with this prompt
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 ?
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");
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…
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)
var name=prompt("what is ur name?");
alert("fuck you "+name);
๐
Ok, It's very good to learn JV tutorial here on youtube.com. Thanks Mr.Scott
Case *,-,/ is very good but case + doesn't work!
@austin10123 same thing happens to me ๐
When I do addition, It doesnt add the two numbers, it just puts them next to eachother. Any help?
@xXMikeScottXx I get an error everytime I try this ๐
JavaScript uses the same logic as Java!
@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.
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.
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?
@stumblinbear I'm 16 and I love them too ^^
the prompt command doesn't work for me.
prompt("What is your name?");
@gmaninthusa I love javascript html php css vb6 C++ and html and i am only 14!
@thenewboston Hey I have a good question! Did you code your website? ๐
@gmaninthusa i love javascript and im only 12
i love javascript and im only 14
very very very and very thanks:)
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.
Nice and simple!
@peterhea222 check xxmikescottxx comment
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?
@mimpf96 alert((num1+num2));
@peterhea222 (2 + 2)
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
@xXMikeScottXx – hey thanx bro! for that "parse" thing. Liked it