Javascript Tutorials for Beginners - Switch Case

preview_player
Показать описание
#javascript #switchcase #javascriptforbeginners

You can use multiple if...else…if statements, as in the previous chapter, to perform a multiway branch. However, this is not always the best solution, especially when all of the branches depend on the value of a single variable.

Starting with JavaScript 1.2, you can use a switch statement which handles exactly this situation, and it does so more efficiently than repeated if...else if statements.

Join this channel to get access to perks:
Рекомендации по теме
Комментарии
Автор

Thanks for sharing this tutorial, now i can start learning javascript

yu-ting
Автор

You share very good video, Thank you dear

khanguyen
Автор

watching here very useful tutorial ang liit nga lng dinko makita masyado

kapitananehaydz
visit shbcf.ru