Javascript - Switch Statements

preview_player
Показать описание
In this tutorial we'll look at the switch statement as a more elegant way of creating the same functionality that a if...elseif statement would have done.
Рекомендации по теме
Комментарии
Автор

The switch statement, as presented, does not fulfill the final case of preventing division by zero, which the if, else method does. So not really a better alternative.

albertbradfield