Question from the Javascript test

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

Medium

What is the output ?

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