Great job! Now we’ll start working on a delay.
Implement a sleep function and export it from the file helper.js
Here’s the spec:

  • sleep should return a Promise
  • the Promise returned by sleep(ms) should be resolved in ms milliseconds

This task is part of the Full-Stack JavaScript Course .
If you have any issues with it, you can ask for community help below the post.
Feel free to help others if you’ve already solved the task.