You should assign a promise to a declared variable named makeServerRequest. Your promise should receive a function with resolve and reject as parameters

Tell us what’s happening:

Your code so far

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


sum = (x,y)=>{

return x("resolved") ;
// y("rejected");


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36.

Challenge: Create a JavaScript Promise

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

The more information you give us, the more likely we are to be able to help.