How do you convert a callback-based function into a Promise-based function? | Promises | javascript Interview Questions | NextRound.in