javascript - Number test in loop -
I was looking for a boolean test for the number 10, 20, 30, 40. It will be used in a loop, 1 to 100. ParseInt takes a little part, but wondering what a method might be for a true or wrong answer.
How about something like:
for ( Var i = 0; I & lt; = 100; ++ i) {If (i% 10 == 0) {// here for the coefficient of something 10} and {// something else is here}}
Comments
Post a Comment