Javascript break Statement Question 2

Introduction

What is the output of the following code?


for (let i = 0; i < 10; i++) {
  console.log(i );
  if (i == 3)
    break;
}


0
1
2
3



PreviousNext

Related