JavaScript JavaScript Loops, Arrays and Objects Simplify Repetitive Tasks with Loops Create a for Loop

Amanda Otero
Amanda Otero
5,453 Points

Why am I getting it wrong?

script.js
for( var i = 4; 4 <= 156; i +=1){
   console.log ( i );
}
for (var i = 4; i <= 156; i += 1) {
  console.log(i)
}

1 Answer