Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.32 KB

File metadata and controls

41 lines (32 loc) · 1.32 KB

🔓 Conditional Statements

In this part, we are going to use expression and operators along with conditional statements to implement interactivity in our website.

In JavaScript, we have two types of conditional statements:

    if (condition){
        action
    }else (condition){
        action
    }else{
        action
    };  
    switch (input){
        case input1
            action
            break;
        case input2
            action
            break;
        case input3
            action
            break;
        default:
            action
    }





◀️ Previous Page : Basics of JavaScript : Array 🔓                                🏡                                ▶️ Next Page : Conditional Statements : If...Else 🔑