A

Admin • 825.56K Points
Coach

Q. Which of the following is used to create a new Promise?

Code:
let p = new Promise((resolve, reject) => {});
  • (A) Correct syntax
  • (B) Incorrect syntax
  • (C) Deprecated
  • (D) Throws error
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
This is the correct way to create a new Promise.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.