profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

JavaScript Breaking Out of a Loop

Syntax

for (let current = 20; ; current = current + 1) {
  if (current % 7 == 0) {
    console.log(current)
    break
  }
}

Related