0

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]]

Mark
  • 90,562
  • 7
  • 108
  • 148
Muten_Roshi
  • 541
  • 2
  • 7
  • 16

0 Answers0