Mega Code Archive

 
Categories / JavaScript Tutorial / Statement
 

Mod operator, if statement and continue

< html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!-- var x = 0; while (x < 10) {     x++;     if (x % 2 == 0)     {         continue;     }     document.write(x); } //  --> </script> </head> <body> </body> </html>