hardJavaScript
Convert Callback Function to Promise
Implement a utility function that converts a callback-based function into a Promise-based function.
The returned function should resolve successful results and reject errors.
Ensure function signatures match starter code to run test cases.
index.js
Loading...
Test Case #1
Input: callbackFunction
Expected: Promise