Hi. I’ve passed the challenge but I’m just wondering why is the console.log(result
doesn’t work where nothing is printed in the console. Perhaps one might say this is a limitation of FCC so use your own browser console but what’s exactly is the limitation?
**Your code so far**
const makeServerRequest = new Promise((resolve, reject) => {
// responseFromServer is set to true to represent a successful response from a server
let responseFromServer = true;
if(responseFromServer) {
resolve("We got the data");
} else {
reject("Data not received");
}
});
makeServerRequest.then(result => {
console.log(result)
});
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36 Edg/93.0.961.47
Challenge: Handle a Fulfilled Promise with then
Link to the challenge: