Can someone please explain this error?

Can someone please explain this error?
0

#1

Hey all. Working on my twitch TV api app, and I’m trying to get my JQuery to populate a list of links which contain the images for the streamers. On line 22 I’m trying to insert a link/image nested within a list item, but I keep getting this error that says "unexpected string."

Here is a link to my pen. Thanks for any help!


#2

You’re missing a + symbol here…

src="+data.logo"></a></li>");

should be

src="+data.logo+"></a></li>");

#3

Thanks! That took care of the error, but the logos are still not going into the list. Not sure what the problem is


#4

You created a function called populateStreamerLogoList, but you have not call it like:

populateStreamerLogoList();