Guess the output for JavaScript. #coding #frontendcourse #programminglanguage #javascript #output

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

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

7, n was 1, post-increment do not increment mid instruction so it's like
n=n+ ++n +n
but ++n increment mid instruction, so it's
n= 1 + 2 + 2
That make it n =5
After that we apply the two post increments
(n++)
The answer is 7

anouar-fadili
visit shbcf.ru