Question 13
Back to Exercise
What does a promisify helper do?
- A Turns an error-first callback function into a function that returns a promise Correct
- B Makes a synchronous function run in parallel
- C Converts a promise into a callback
- D Removes errors from callbacks
Correct Answer: Option A
The wrapper calls the original with its own callback that resolves or rejects the promise. Node.js provides util.promisify.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!