Beginner JavaScript Tutorial – 17 – Complex Conditions




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


40 responses to “Beginner JavaScript Tutorial – 17 – Complex Conditions”

  1. Please answer this question: would nesting not have its own unique benefit as compared to "complex condition"?

    say you wanted to find out if the first if statement is correct and display some text then from there find out if the second is correct and then display text. Unless i'm mistaken the "complex conditions" only display text if ALL statements are correct.

  2. I am really enjoying your tutorials. I took this a step further going from your previous tutorial and came up with this;
    var first = "Malick";
    var last = "Cisse";
    if( (first=="Malic") || (last=="Cise") ){
    document.write("How are you doing? ");
    }else{
    document.write("Your name is not on the list");
    }

Leave a Reply