Create a JavaScript Promise22

My code is failing the test:
Describe your issue in detail here.

Your code so far


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

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

// });

Your browser information:

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

Challenge: Create a JavaScript Promise

Link to the challenge:

Please what is the problem with my code?

The only difference, which is purely visual is the space between Promise and (.

Removing this space allows the test to pass. However, I believe this is more an oversight on the test-case(s) than anything actually wrong with your code.

Its worth noting that adding a space between a class/function and its () is not recommended by most style guides, even though the code itself will function the same.

1 Like

Thanks. I have been able to solve it. I really appreciate.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.