⬆️ ⬇️

Interesting task

Such a simple little problem put me into a dead end:



var a=2

b=a++ + (--a * ++a)

// b?




Based on the priority of operations, parentheses () have the highest priority, then the expression in brackets must first be executed, then everything else?



Write your answer, and then run the code in the browser (any).


')

Source: https://habr.com/ru/post/77397/



All Articles