Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Loops, Arrays and Objects Tracking Multiple Items with Arrays Adding Data to Arrays

Andrea Algiers
Andrea Algiers
1,147 Points

playlist list isnt showing up

I dont understand what is wrong. When I preview this it only shows the header. My songs dont list. Can someone please help!

here is the code from workspace

https://w.trhou.se/krppa4g0vp

2 Answers

Tobias Helmrich
Tobias Helmrich
31,602 Points

Hey Andrea,

the problem might be that you're creating a function called "printList" but the function you're calling is "printlist" (with a lowercase L). Try changing the lowercase "l" to uppercase and see if it works then. I hope that helps, good luck! :)

Andrea Algiers
Andrea Algiers
1,147 Points

That didnt work :( and the funny thing is the console isnt giving me any error messages.

Tobias Helmrich
Tobias Helmrich
31,602 Points

I just forked your workspace and changed this line

printlist(playlist);

to this

printList(playlist);

like I said and it's working just fine for me! Are you sure you changed it correctly? If so, try saving everything and restart your workspace, I hope that helps! :)

Andrea Algiers
Andrea Algiers
1,147 Points

GOT IT! i happened to capitalize the L in printlist and playlist. (face palm!)