Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

modulo operator multiples, alternate values

for( i=0; i <= 10; i++ ) {
  writeOutput( i%2 );
}
// 01010101010
Source by blog.mattclemente.com #
 
PREVIOUS NEXT
Tagged: #modulo #operator #alternate #values
ADD COMMENT
Topic
Name
1+6 =