Create a JavaScript promise

Tell us what’s happening:
Create a JavaScript promise
I don’t know what I’m doing wrong, I think my code is fine, please tell me what I’m doing wrong

Your code so far

const makeServerRequest = new promise ((resolve, reject) =>{

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 5.1; Lenovo P1ma40) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.99 Mobile Safari/537.36.

Challenge: Create a JavaScript Promise

Link to the challenge:

  1. Promise is a constructor, you can tell because it is using uppercase for the first letter. You have promise.

  2. The space before the parentheses is throwing off the test, remove it.

1 Like