What Will Be The OUTPUT Of This Code || #javascript #shorts #coding #shortvideo #viral #python

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

In the first line, [] + {} turns both into strings — the array becomes '' and the object becomes "[object Object]", so the output is "[object Object]".
But in the second line, {} is treated like a code block, so it’s ignored, and +[] becomes 0. That’s why the output is different.

CODE_ATOM
welcome to shbcf.ru