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

printList not printing I'm adding Data to an Array in workspaces & Chrome

This my code:

var platList = []; playList.push('I Did It My Way'); playList.push('Respect', 'Image'); playList.unshift('Born to Run'); playList.unshift('Louie Louie', 'Maybellene'); printList( playList );

I've check it against the TeamTreeHouse Training vid and MDN, I'm not sue what I'e missed?

1 Answer

When you first declare the variable you have a spelling error instead of var playList = []; you wrote : var platList = [];. :)