Question: How can you use the promise API with a callback-based function such as child_process.exec?
- new Promise(child_process.exec())
- util.promisify(child_process.exec())
- util.promisify(child_process.exec)
- new Promise(child_process.exec)
Answer: The correct answer of the above question is Option C:util.promisify(child_process.exec)