ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 22 - Certified JavaScript Developer I discussion

Report
Export

Given code below: setTimeout (() => ( console.log(1);

A.
0); console.log(2); New Promise ((resolve, reject )) = > ( setTimeout(() => ( reject(console.log(3));
Answers
A.
0); console.log(2); New Promise ((resolve, reject )) = > ( setTimeout(() => ( reject(console.log(3));
B.
1000);)).catch(() => ( console.log(4); )); console.log(5); What is logged to the console?
Answers
B.
1000);)).catch(() => ( console.log(4); )); console.log(5); What is logged to the console?
C.
2 1 4 3 5
Answers
C.
2 1 4 3 5
D.
2 5 1 3 4
Answers
D.
2 5 1 3 4
E.
1 2 4 3 5
Answers
E.
1 2 4 3 5
F.
1 2 5 3 4
Answers
F.
1 2 5 3 4
Suggested answer: B
asked 23/09/2024
Anthony Wilson
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first