Title is most of the question, what allows this to be valid code? Is there any benefit or trick that would allow me to utilize this?
The unary plus operator has higher precedence than the addition operator, just split your expression into multiple grouped expressions and it will seem pretty obvious:
var m = 6 + ( +( +( +( +( +( +( +( 6 ))))))));
//6 + 6
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With