LearnFrenzy
Sign in Take a free test

Callbacks · Callbacks MCQ · Question 13

promisify Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links