11: How to Create Conditions in JavaScript | Conditional Statements | JavaScript Tutorial




How to Create Conditions in JavaScript | Conditional Statements | JavaScript Tutorial. In this JavaScript tutorial you will learn about conditional statements which are used to create logic in JavaScript applications.

โžค GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful ๐Ÿ™‚

Material for this lesson: https://www.patreon.com/posts/javascript-11-18255744

Original source


23 responses to “11: How to Create Conditions in JavaScript | Conditional Statements | JavaScript Tutorial”

  1. quick question….. with regards the
    if(age > 18) and if(gender == "male")

    could you not put them together in one if statement? so

    if(age >=18 && gender == "male") would this work also? I also didnt know you could put 2 if statements after one another?

    these videos are great!!

  2. just a note here guys.. the && operator could also be used to test both condition in the "if" statement ,, doing so would omit the need of the second if statement and you would get the same result. eg.. if (gender == "male" && age >= 18) { console.log(" and you would log something here ");}

Leave a Reply