Beginner JavaScript Tutorial – 18 – switch

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

49 responses to “Beginner JavaScript Tutorial – 18 – switch”

  1. unique EAGle Avatar

    natalie is also my dream girl bucky

  2. Rodger Winkler Avatar

    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>

  3. Atmosphere ASMR Avatar

    Unintentional ASMR at 0:00

  4. Zhou Shen Avatar

    but you need break in default in java XD

  5. AJay Gupta Avatar

    RIP 15 dislikers.

  6. Buffryni Avatar

    You should tell people to open there eyes i listened your complete video without opening my eyes. 🙁

  7. Aravind Naidu Avatar

    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.

  8. Vojislav Zugic Avatar

    I hope Natalie Portman is watching this 😀

  9. Daniyal Saleem Avatar

    i wona lmage slider can you help me

  10. Rip aru Avatar

    i am impressed now switch is clear……………….

  11. kanchan sharma Avatar

    sir , user input facility is possible or not in javascript

  12. Admin-i strator Avatar

    ''Girls to enter'' mua ha ha.. Buckii… you dirty…

  13. nolareaper Avatar

    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

  14. Isira Pramodith Avatar

    say that you have like 50 girls….seriously

  15. Sai Karthik Avatar

    thanks very much for expalaining Js in damn easy way !! Please do some tuts on Rust lang too…

  16. ILusioN Avatar

    easy to understand thanks

  17. Trevor D'souza Avatar

    @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

  18. MIKAL PALMANTIER Avatar

    3:52 "Since our girl is equal to Natalie right noOow"

  19. Maaz Shaikh Avatar

    i forgot to open my eyes

  20. Bukol Odeleye Avatar

    Due you have problem.

  21. Fahim Ismailmagdum Avatar

    Suuuper Buddy….Clear and Descriptive

  22. LOOP BREAK Avatar

    thanks for your support man

  23. LOOP BREAK Avatar

    can you tell which software are u using????????????????????????
    pls
    pls

  24. Alternity Avatar

    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.

  25. Tino F Avatar

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

  26. CodingTuts Avatar

    does default always have to be at the end??

  27. Poohbie Avatar

    Switch case statement can't be used inside of a function?

  28. Josif Nguyen Avatar

    Thanks for sharing

  29. IceBoy 2612 Avatar

    Why do we bred this???

  30. banhishikha Sinha Avatar

    u r totally cool n ur tutorials are very heplful… <3

  31. Top GameR Avatar

    I AM NATELI GUT I AM A BOY SHOULD I CALL U?????????

  32. EFZ X Avatar

    CAN I GET GIRLS BY JUST CODING?OR SHOULD I MAKE A VIRTUAL GIRL BY CODING

  33. ModSites Avatar

    Love your tuts.  Very easy to follow and to the point.  

  34. Ralphunreal Avatar

    isnt || and && even more organized than switch?

  35. Hana Ran Avatar

    thats a fucking nice way to teach u know

  36. LegitVice Avatar

    wow, you have strange imagine 😛

  37. Deathryder99 Avatar

    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?

  38. jonida mema Avatar

    thank you very much from i am learning javascript 🙂

  39. John P Avatar

    V for vendetta was my favorite movie with her

  40. LGNDrax Avatar

    2 dislikes! wow

  41. Illusive Serb Avatar

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

  42. Casey Stack Avatar

    Garden State…awesome movie bro!

  43. King Trawal Avatar

    Hey, this is Natalie Portman. what's your number, so i can call you?

Leave a Reply

Your email address will not be published. Required fields are marked *