JavaScript Coding Challenge 32/100

preview_player
Показать описание
The code will output 1.

The || (logical OR) operator returns the first truthy value it encounters. In this case, obj.a is 1, which is a truthy value, so the expression stops there, and 1 is logged to the console.
Рекомендации по теме