My java script doesn’t work. I can’t find the mistake in my code. I can’t get the results for my search in the web page.
make the following changes, and replace [yourkey] with your API key.
Append &s=
in API_URL and &i=
in API_URL_SEARCH.
const API_URL=“http://www.omdbapi.com/?apikey=[yourkey]&s=”
const API_URL_SEARCH = “http://www.omdbapi.com/?apikey=[yourkey]&i=”
I made the changes but still the console shows an error in the line 8 but the number of errors changed to 5.