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
41 responses to “Beginner JavaScript Tutorial – 18 – switch”
3:55 right nOu
I did a million girls.
oh boy! I gotta remember not to put my switch cases inside curlybraces in javascript like I can in C++.
Is it possible to code a Bucky ?
can I open my eyes now….?
revision for java basics…good recap
natalie is also my dream girl bucky
Enjoy!!!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title><script>
function the(){
var x1 = document.getElementById("apple");
var a = "Hello";
switch(apple.value = a ){
case "Hello":
alert("nice");
function helo(){
for(x = 0; x < 10; x++){
document.write("nice job<br />");
}
}setTimeout(helo, 1000);
break;
}
}
</script>
<style type="text/css"> </style>
</head>
<body>
<input type="text" id="apple" placeholder="Type Hello">
<input type="Submit" onclick="the()">
</body>
</html>
Unintentional ASMR at 0:00
but you need break in default in java XD
RIP 15 dislikers.
You should tell people to open there eyes i listened your complete video without opening my eyes. 🙁
Is it possible to declare girl value at the time of execution rather than initializing before? If it is possible, it will be better to explain switch case.
I hope Natalie Portman is watching this 😀
i wona lmage slider can you help me
i am impressed now switch is clear……………….
sir , user input facility is possible or not in javascript
''Girls to enter'' mua ha ha.. Buckii… you dirty…
Dude you are so thorough! I love your teaching style and Im learning from you way easier than when I was in college! It's more fun too. Thanks for making these and for being yourself while teaching
say that you have like 50 girls….seriously
thanks very much for expalaining Js in damn easy way !! Please do some tuts on Rust lang too…
easy to understand thanks
@3:17 "So I'm only gonna do two girls now, but if you did a hundred, a thousand a million" had me in splits
i forgot to open my eyes
Due you have problem.
Suuuper Buddy….Clear and Descriptive
thanks for your support man
can you tell which software are u using????????????????????????
pls
pls
How to get the user's input in js Sir like java.util.Scanner; in Java? I know its out from Switch Statement topic but it just suddenly remind me after watching this tutorial. Thank you from Philippines.
<script type="text/javascript">
// This is a practice javascript & XHTML file
var name = ""Your name here"";
var saySomething = "Hello"
function fdsa(x){
switch(x){
case "Hey":
document.write("Hello " + name);
break;
case "Hi":
document.write("Hey " + name);
break;
case "Hello":
document.write("How's it going " + name + "?");
break;
case "What's up?":
document.write("Just doing computer stuff…");
break;
}
return " ";
}
document.write(name + ": " + saySomething + "<br/>");
document.write("Computer: ");
document.write(fdsa(saySomething));
</script>
put your name in the first variable(name) and say hi or hello in the second variable(saySomething)
does default always have to be at the end??
Can I open my eyes now?
Switch case statement can't be used inside of a function?
Thanks for sharing
Why do we bred this???
like !!!
u r totally cool n ur tutorials are very heplful… <3
I AM NATELI GUT I AM A BOY SHOULD I CALL U?????????
CAN I GET GIRLS BY JUST CODING?OR SHOULD I MAKE A VIRTUAL GIRL BY CODING
You are great!
Love your tuts. Very easy to follow and to the point.