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

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -