AI

Promises are a modern way to handle async operations. They represent a value that might be available now, later, or never.

Your Task:

  • Create a function makePromise that returns a new Promise
  • The promise should resolve with the string "Success!"
  • Call makePromise and use .then() to update the result variable with the resolved value
TypeScript Solution
Loading...

Submit your code to see test results