Question from the Javascript test

Write a for loop in Javascript that prints 1, 2, 4

Easy

What is the output ?

for (let i = 1; i < 5; i++) {
  if (i === 3) continue;
  console.log(i);
}
Author: Vincent CotroStatus: PublishedQuestion passed 229 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!