Red@reddthat.com to linuxmemes@lemmy.worldEnglish · 2 years agoCode interviews for a PHP developer rolesreddthat.comimagemessage-square126linkfedilinkarrow-up1344arrow-down122
arrow-up1322arrow-down1imageCode interviews for a PHP developer rolesreddthat.comRed@reddthat.com to linuxmemes@lemmy.worldEnglish · 2 years agomessage-square126linkfedilink
minus-squarebasdiljhs@lemmy.worldlinkfedilinkarrow-up14·2 years 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
minus-squaremoog@lemm.eelinkfedilinkarrow-up5·2 years agoThank you holy shit I was beginning to think no one has ever seen a fizz buzz before
minus-squareJeena@jemmy.jeena.netlinkfedilinkarrow-up4arrow-down1·2 years agoStrictly speaking this one does not find the odd numbers, it just prints them.
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
Thank you holy shit I was beginning to think no one has ever seen a fizz buzz before
deleted by creator
Strictly speaking this one does not find the odd numbers, it just prints them.