filmov
tv
7 - else, else if, switch statements in JavaScript

Показать описание
if: specify a block of code to be executed, if a specified condition is true
else: specify a block of code to be executed, if the same condition is false
else if: to check multiple conditions
switch: used to specify many alternative blocks of code to be executed
else: specify a block of code to be executed, if the same condition is false
else if: to check multiple conditions
switch: used to specify many alternative blocks of code to be executed