0
Does (%) have a higher precedence than ( * ) in javascript ?
3 Answers
+ 5
No, both operators have same precedence. They are just evaluated from left to right.
6*4%5 = 4
6%4*5 = 10
+ 2
According to this table, * / and % shares common precedence, they are on same level of precedence (priority).
http://www.scriptingmaster.com/javascript/operator-precedence.asp