#22 If else Statements | JavaScript Full Tutorial

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • 🙂 SUBSCRIBE - hit the bell 🔔 and choose all: goo.gl/nYLZvz
    In this lesson we're going to be learning all about the most commonly used Conditional Statement, the if statement. The if statement takes a condition and evaluates whether it is a truthy or falsy value, if it's true then it will run a block of code. We also learn about the variants, if else and else if statements.
    ------------------
    👍 HTML FULL TUTORIAL: shorturl.at/fiCMV
    👍 CSS FULL TUTORIAL: shorturl.at/clGSZ
    ------------------
    FACEBOOK: / devdreamercode
    TWITTER: / devdreamercode
    SUBSCRIBE and hit the BELL NOTIFICATION 🔔: goo.gl/nYLZvz
    ------------------
    Learn with Dev Dreamer! Step by step, easy to understand tutorials :-)

Комментарии • 14

  • @ralitsadimova9623
    @ralitsadimova9623 9 месяцев назад +2

    Hi there, I found your videos really useful, well-explained, and structured.
    I like that you give tasks at the end of each video, I personally learn better when struggle with a particular task.
    Therefore could you please create videos with lots of tasks? JS mainly, but CSS and HTML are welcome too:)))).
    Thank you for your effort and sharing your knowledge.

  • @Rui28Costa
    @Rui28Costa Год назад +2

    This is the 3rd video of yours that i watch and its so much fun. Its a shame you stopped uploading.

    • @DevDreamer
      @DevDreamer  9 месяцев назад +1

      Hey thanks for watching, I know it’s been a while, but trust me I am NOT done! Hoping to upload some new content very soon 😀👍

  • @alalyrealestate1136
    @alalyrealestate1136 Год назад +2

    Thank you
    😊

  • @famoustube2737
    @famoustube2737 3 года назад +3

    Keep going pro

  • @stanleytomasetti1074
    @stanleytomasetti1074 Год назад +1

    I know this is an old video, but I came up with this and it worked. Am I wrong, I didn't need another variable.
    let myName = `Stanley`;
    if (myName.length > 5) {
    console.log(`More than 5 letters`);

    • @Jay-zl6iq
      @Jay-zl6iq 6 месяцев назад

      thats what i did also

  • @ukukudu7066
    @ukukudu7066 2 года назад +1

    Good videos 👍🏼

  • @webb-developer
    @webb-developer 9 месяцев назад

  • @famoustube2737
    @famoustube2737 3 года назад +1

    Your get your dream

  • @Robin_biju
    @Robin_biju 2 года назад +1

    //#1
    let num = 10 + 2;
    if (num > 2 && num < 20) {
    console.log("TRUE");
    } else {
    console.log("FALSE");
    }
    //output:- TRUE
    //#2
    let user = 'employee';
    if (user === 'guess') {
    console.log("Login Denied");
    } else if(user === 'employee') {
    console.log("Sucessfully Logged in");
    }
    //output:- Sucessfully Logged in
    //#3
    const myName = "Robin";
    let lengthName = myName.length;
    if (lengthName > 5) {
    alert("More than 5")
    }else if (lengthName >= 5) {
    alert("Exat 5 letters")
    }else {
    alert("Less than 5 letters")
    }
    //output:- Exat 5 letters

  • @komalkumar3885
    @komalkumar3885 3 года назад +1

    let's play

  • @Krenil.
    @Krenil. 3 года назад

    here are answer by me of the task
    1.answer
    //task no 1/*
    //Question
    /*
    what will be the output of the following code
    let num = 10 + 2;
    if(num>2 && num

  • @babu-iu4it
    @babu-iu4it 11 месяцев назад

    Thank you