Q6: What is util.promisify() in Node.js?

util.promisify() converts standard callback-based functions (following error-first conventions) into functions returning Promises.

Key Takeaways
  • Transforms callback-style functions into Promise-returning functions.
  • Enables clean async/await syntax integration.
Knowledge Check

What function signature must a callback follow to work with util.promisify()?