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
}