Could you please help me solving this. How can I access the values in PromiseValue?. I m getting
[[PromiseStatus]] : "resolved" [[PromiseValue]] :
Here is my code
function getMovies(searchTerm){
fetch('http://www.omdbapi.com/?t='+searchTerm+'&apikey=xxxxxxx')
.then((resp) =>{console.log(resp.json())
})
.catch((err) =>{console.log(err)
});
}
})
I am getting the response (resp) but I assume the promise is not done yet? But what additional .then do I have to write to finally get my final data which is currently within [[PromiseValue]]