minus-squarebasdiljhs@lemmy.worldtolinuxmemes@lemmy.world•Code interviews for a PHP developer roleslinkfedilinkarrow-up14·8 months agofor(var i=0;i<=100;i++){ if((i%2)==1) console.log(i); } btw % is the modulo operator, x%y returns the remainder of division of x by y linkfedilink
for(var i=0;i<=100;i++){ if((i%2)==1) console.log(i); }
btw % is the modulo operator, x%y returns the remainder of division of x by y