Build a Wikipedia Viewer - API help, not found message

Hi, please, can you help me with JavaScript/JSON API?

In wiki viewer, when the search phrase is not found, I don’t know how to show “Not found” message… Now I deleted all unsuccessful pieces of code, but I tried a lot stuff… Any ideas please?

When your information returns in the variable x, you can first to see how many elements it returned, in other words see how large the array x.query.search is.

Also, you’re getting an error in your browser console because you’re loading the bootstrap before JQuery.