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
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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!