Trouble with JQuery loops

Hello all, I’m having a bit of trouble on the wikipedia viewer challenge. I am trying to loop through the JSON results and make an ordered list with the results. However, the results keep showing up as just text smashed together. Can someone help me troubleshoot why this is happening?

Here’s my codepen:

Hey mate,

In your HTML you’re using tags for an unordered list <ul>.

Changing this to <ol> works for me locally.

I’m not sure what you mean by text smashed together. Do you mean the text is unordered, or is something else happening?

Yeah, works fine for me, and Josh’s change will fix it. No smashing when I run it.

1 Like