Given an asynchronous function that uses an error-first callback (e.g., `fs.readFile(path, callback)`), refactor and wrap it to return a native JavaScript Promise instead.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.