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);

4th Mar 2018, 1:35 PM
Briaה‎
1 Réponse
+ 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;
5th Mar 2018, 1:28 AM
John Wells
John Wells - avatar