ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 46 - Certified JavaScript Developer I discussion

Report
Export

Given the code below:

const delay = sync delay => {

Return new Promise((resolve, reject) => {

setTimeout (resolve, delay);});};

const callDelay =async () =>{

const yup =await delay(1000);

console.log(1);

What is logged to the console?

A.
1 2 3
Answers
A.
1 2 3
B.
1 3 2
Answers
B.
1 3 2
C.
2 1 3
Answers
C.
2 1 3
D.
2 3 1
Answers
D.
2 3 1
Suggested answer: D
asked 23/09/2024
Jaques Rautenbach
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first