DEV Community

rupayan1998
rupayan1998

Posted on

i got an assertion error here as “expected undefined to equal '2 sec'” at line 10…why such?

write a JS program that prints two messages with a delay of 1 second and 2 seconds sequentially using async-await. which conatins 4 async functions: timeout, resolveAfter1Second, resolveAfter2Second and sequentialStart.

timeout takes 1 argument- a number which denotes how much time the function will wait in ms…

Top comments (0)