Cool tricks using short-circuit evaluation in JavaScript

preview_player
Показать описание
Short-circuit evaluation happens when using conditionals with && or ||. The second argument is only evaluated when the first argument is not enough to determine the value of the expression. Learn some tricks using short-circuit evaluation in JavaScript.

Code:
More info:

Twitter: @jsnugget

JS Nuggets: Brisk JavaScript training and tips
Рекомендации по теме
Комментарии
Автор

Listening to this feels like I accidentally hit that speed up 2X button.

squdge