• Tuesday , 12 December 2017

Beginner JavaScript Tutorial – 15 – if/else Statement

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

34 Comments

  1. Rose Red
    September 30, 2017 at 10:45

    Awesome, thank u for the videos!

  2. Arnold Hattingh
    September 30, 2017 at 10:45

    from what i can read in the comments, I still believe we struggle at school because the teachers want to sound smart. Bucky doesn't give a shite if you think he is smart or not. dumbs it down to beginner level and we all understand.

  3. DeadBabyParty
    September 30, 2017 at 10:45

    You managed to explain what my professor couldn't. he had a semester, you had less than 10 minutes. Jesus fuck man, thank you and fuck college.

  4. R VISHAL
    September 30, 2017 at 10:45

    Coco+Nuts =Coconuts

  5. In3Audio
    September 30, 2017 at 10:45

    I love these tutorials!

  6. Cerina X
    September 30, 2017 at 10:45

    Thank you. You're very good at explaining this.

  7. Sathiyabama Manoharan
    September 30, 2017 at 10:45

    this is really similar to python

  8. Admin-i strator
    September 30, 2017 at 10:45

    What about the third form "if … else if"?

  9. yerrapotu kiran
    September 30, 2017 at 10:45

    <script>
    var Bucky = 'a' ;

    var Buck='h' ;
    if (Bucky > Buck){
    document.write("Bucky u r awesome ");
    }else{
    alert(" u r still awesome Bucky ");
    }
    </script>

  10. Xu Yang
    September 30, 2017 at 10:45

    Thanks a lot bucky about this video, haven't coding for nearly 3 years, want to get back to programming again. This is a good refreshment to get memory back.

  11. Michael Reynolds
    September 30, 2017 at 10:45

    Can one use a else if in javascript?

  12. Mark Oswald
    September 30, 2017 at 10:45

    another great tutorial, i'm going to watch all 40. thanks bucky

  13. Nevergrim
    September 30, 2017 at 10:45

    awesome videos but i still dont get it why dont u use stricts like === instead == u know u are missleading people right ?

  14. Jawad Ahmed
    September 30, 2017 at 10:45

    Is there a else if statement and are there && || operators

  15. Shoyaib AL SAKIB
    September 30, 2017 at 10:45

    Nice tutorial..
    Now the time is go..!!!

  16. ALEXGONEG∆MING
    September 30, 2017 at 10:45

    var apples = 34;
    var hotdogs = 53;
    var people = 15;
    if(apples + hotdogs >= people){
    document.write("You have enough weenies and apples!");
    }
    else{
    document.write("You do not have enough weenies and apples!");
    }

  17. Georgi Georgiev
    September 30, 2017 at 10:45

    Thank you for the tutorial.
    GOD bless you and keep you.

  18. Kou
    September 30, 2017 at 10:45

    You're my inspiration bucky.

  19. Brian Forrestal
    September 30, 2017 at 10:45

    THE NEW BOSTON KICKS ASS! GO EAT A HOT POCKET NOW!! OH BILLY!!!! AFTER THESE LESSONS I'LL NEVER GO BACK TO FARM ANIMALS!

  20. Hoshou Neko
    September 30, 2017 at 10:45

    if(strawberries == coconut){
      document.write("Bucky loves coconut");}

  21. Cubit
    September 30, 2017 at 10:45

    so far the only difference iv seen from processing and javascript is how u out down a text….iv been having to skip to something i dont know since all this is teaching me stuff i learned in processing (processing is actually called Proccesing.JS, its a simpler version of javascript, but not so different aparently) but i guess im lucky, i know most of javascript already

  22. Deathryder99
    September 30, 2017 at 10:45

    Dayum I love this tutorials! You are the best!

  23. dola adel
    September 30, 2017 at 10:45

    hi 
    can you tell me plz how i can write a paragraph in arabic
     while coding in html ??

  24. EANPSG
    September 30, 2017 at 10:45

    So is this the basics of every Catpa security question? lol

  25. dolphinsatsunset1
    September 30, 2017 at 10:45

    This reminds me of C++. I imagine you can also do more than one test like this:

    if(3 <5 && 30 < 99)
    {
    document.write("Yay it works!");
    }

    else if (4<8 || 5 > 8)
    {
    document.write("Only half is correct!");
    }

    else 
    {
    document.write("I am a total failure!");
    }

  26. LordBukket
    September 30, 2017 at 10:45

    doesnt work for me

  27. Herman Brooks
    September 30, 2017 at 10:45

    These videos always makes me hungry.

  28. ken canega
    September 30, 2017 at 10:45

    if(comparison)
    {
    }else if(comparison)
    {
    }
    else
    {
    }

  29. jacraftable
    September 30, 2017 at 10:45

    Also you can make it do a function outside the if/else statement.

  30. Randomusername 69
    September 30, 2017 at 10:45

    you can use if else if example :

    if bracket something == something bracket curly bracket
    do this
    curly bracket
    else if bracket this == this bracket curly bracket
    do this
    curly bracket

  31. C Morales
    September 30, 2017 at 10:45

    How can I tell it to do different calculation for two cases

  32. ahmed mastor
    September 30, 2017 at 10:45

    clean and clear

  33. Sujal Singh Thakuri
    September 30, 2017 at 10:45

    Yes!! i also sometimes programm using c++ and i also think that is similar to the javascript

  34. Sujal Singh Thakuri
    September 30, 2017 at 10:45

    6 Peoples DOnt have both ear and eyes

Leave A Comment

You must be logged in to post a comment.