Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 342 Bytes

controlling-loops.md

File metadata and controls

23 lines (19 loc) · 342 Bytes

Controlling Loops

let i = 0
for(;i<4;i++){
  console.log(i)
}

for(let k=0;k<4;k++){
  console.log(k)
}

continue

//continue helps you stop executing the body but go ahead and continue as though the body had completed
for(let i = 0;i<4;i++){
  console.log(i)
  continue
  console.log("skipped")
}