Tell us what’s happening:
Describe your issue in detail here.
It’s not related to code but In this challenge, They have mentioned that A promise has 3 states. Correct me if I’m wrong but I have read during one of the interviews preparation that settled is a state of promise.
**Your code so far**
const makeServerRequest = new Promise((resolve, reject) => {
// responseFromServer represents a response from a server
let responseFromServer;
if(responseFromServer) {
// Change this line
resolve("We got the data");
} else {
// Change this line
reject("Data not received");
}
});
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36
Challenge: Complete a Promise with resolve and reject
Link to the challenge: