[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
Beginner JavaScript Tutorial – 18 – switch
by
Tags:
Comments
49 responses to “Beginner JavaScript Tutorial – 18 – switch”
-
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
-
3:52 "Since our girl is equal to Natalie right noOow"
-
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 filevar 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
-
best ^_^ 🙂
-
You are great!
-
Love your tuts. Very easy to follow and to the point.
-
isnt || and && even more organized than switch?
-
thats a fucking nice way to teach u know
-
wow, you have strange imagine 😛
-
I want to make a ''type bar'' thingy.. I mean like: You have to type someones name and then the message will pop up. Does anybody know how to do that?
-
3:18 😛
-
thank you very much from i am learning javascript 🙂
-
V for vendetta was my favorite movie with her
-
2 dislikes! wow
-
I have a question. Does the default always come last? What if we first wrote the default, would the script continue scanning for names or would it stop right at the default (without using the break, naturally)?
-
Thanks bro!
-
Garden State…awesome movie bro!
-
Hey, this is Natalie Portman. what's your number, so i can call you?
Leave a Reply