Skip to content
#

answers

Here are 175 public repositories matching this topic...

vsDizzy
vsDizzy commented Nov 17, 2020

Q15. How can you use the promise API with a callback-based function like child_process.exec?

  • new Promise(child_process.exec())
  • util.promisify(child_process.exec())
  • util.promisify(child_process.exec)
  • new Promise(child_process.exec) <<<<----Correct

I believe the correct answer should be the 3rd one.
util.promisify(child_process.exec)

Здесь собраны самые популярные вопросы, задаваемые на русскоязычных собеседованиях разработчика React.js, и ответы на них. Тематика вопросов включает в себя как основы JavaScript и веб-технологий так и глубокое понимание работы React.js

  • Updated Sep 14, 2019

Improve this page

Add a description, image, and links to the answers topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the answers topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.