Gce Model Questions Vol1 2022 Computer Studies Question 20
Practice objective / multiple choice question 20 from the 2022 Gce Model Questions Vol1 Computer Studies examination.
Examine the JavaScript code below: ```javascript for (var i = 1; i <= 3; i++) { setTimeout(function() { console.log(i); }, i * 100); } for (let j = 1; j <= 3; j++) { setTimeout(function() { console.log(j); }, j * 100); } ``` Assuming the code runs in a modern browser, what sequence of numbers is printed to the console, in the order they appear?
Answer Options
About This Question
This is Gce Model Questions Vol1 2022 Computer Studies Question 20. It is one of the objective questions from the 2022 Gce Model Questions Vol1 Computer Studies examination.
Difficulty level: Hard .
Master the Exam!
You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.