lundi 24 décembre 2018

How do I select a select set of numbers in a loop?

Had to walk away from this one for the weekend. Would love to know my nemesis is giving me the answer plus some extra stuff?

for (let i=-1; i++< 100; i*5) {
  if (i < 0) {
  continue;
} else if ( i > 50) {
  break;
} else {
  console.log(i/5);
}
}

Aucun commentaire:

Enregistrer un commentaire