7 - else, else if, switch statements in JavaScript

preview_player
Показать описание
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
Рекомендации по теме
welcome to shbcf.ru