Page 1 of 1

What is the output of Loop 1? for (var i=0; i<5; i++) { console.log(i); } console.log(i); When this runs, what will disp

Posted: Fri May 20, 2022 6:12 pm
by answerhappygod
What Is The Output Of Loop 1 For Var I 0 I 5 I Console Log I Console Log I When This Runs What Will Disp 1
What Is The Output Of Loop 1 For Var I 0 I 5 I Console Log I Console Log I When This Runs What Will Disp 1 (41.79 KiB) Viewed 39 times
the differences between the code in Loop 1 and Loop 2
What is the output of Loop 1? for (var i=0; i<5; i++) { console.log(i); } console.log(i); When this runs, what will display? 012345 1234 error 12345 O 12345 error Question 3 1 pts What is the output of Loop 2? for (let i=0; i<5; i++) { console.log(i); } console.log(i); 01234 error 012345 12345 12345 error