ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 142 - Certified JavaScript Developer I discussion

Report
Export

Refer to code below:

console.log(0);

setTimeout(() => (

console.log(1);

});

console.log(2);

setTimeout(() => {

console.log(3);

), 0);

console.log(4);

In which sequence will the numbers be logged?

A.
01234
Answers
A.
01234
B.
02431
Answers
B.
02431
C.
02413
Answers
C.
02413
D.
13024
Answers
D.
13024
Suggested answer: B
asked 23/09/2024
megat ilham
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first