Home > Back-end >  JS on the priority is higher than in parentheses priority?
JS on the priority is higher than in parentheses priority?

Time:10-24

JS code:
Var I=10;
Var j=i++ - (+ + I + + + I);
Document. The write (" j="+ j);
The result code for 15

According to the operator precedence () & gt; Since the operation
+ + in the left after the first increased with
+ + after the right to use to add
First calculate the brackets
J=i++ - + 12 (11)=10-23=13
Don't understand Europe

CodePudding user response:

Int j=10 - (11 + + + + + 12)

CodePudding user response:

Since the increase must be greater than brackets, in Java
  • Related