Node.js · Middle · Question 10 of 75

What does await setTimeout(1000) imported from node:timers/promises do?

Explanation

node:timers/promises has promise versions of setTimeout, setImmediate and setInterval (an async iterator). They also accept an AbortSignal.

Further reading

Problem with a question

Node.js · Middle · question 10

Test yourself

Take the Node.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz