0
Please help. There seems to be a sequence to the operators.
var two = 5; var five = 8; var eight = 3; var three = two+eight%five; var ten = two*three%eight; alert (ten);
1 Answer
+ 2
Based on your language skills, I'm guessing you already know that the sequence is similar to what you learned in Math class. I added parentheses to show what operation happens first in the two expression that it matters with.
var three = two+(eight%five);
var ten = (two*three)%eight;