Wikipedia Viewer - multiple ways to display results

I’m seeking feedback on my Wikipedia viewer - preferably on the JS portion.
It may be helpful for others - in my code I show several methods of displaying the results from Wikipedia. One is just a loop, and the others use .map() to create an array of objects, since the Wikipedia results are a bunch of corresponding arrays.

Code View - Wikipedia Viewer
Full Screen - Wikipedia Viewer

You should provide a link to your code if you want comments on it.

It is styled well but with no frills. You could add some validation for no results or nothing being searched for.

here’s a link?
Wikipedia viewer codepen editor

Thanks for adding it! I edited the post to add it as well. :slight_smile:

Ah yes thanks for the validation suggestion - I completely forgot about that :blush:

1 Like