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 Two-Dimensional Arrays

willkey
willkey
3,650 Points

I can't see whats wrong with my JavaScript code

I am trying to follow the video and write the code and try to get working. BUT when i run the script, it's not showing anything. I can't see where my code has an error. the console in chrome says "playlist.js:33 Uncaught ReferenceError: playList is not defined at playlist.js:33" I can't see what I am doing wrong.

Adam Beer
Adam Beer
11,314 Points

Please show your whole code.

Code

Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting.

      ```html
      <p>This is code!</p>
      ```
Steven Parker
Steven Parker
231,236 Points

Even better, you can share the entire project at once if you make a snapshot of your workspace and post the link to it here.

2 Answers

the console in chrome says "playlist.js:33 Uncaught ReferenceError: playList is not defined at playlist.js:33" I can't see what I am doing wrong

you are referencing playList but what is the playlist actually called? Is it using camel case in your code in the way you referenced it? Is it called simply playlist? It seems to me you're probably just experiencing a typo so scan the code. As others have said, it'll be more helpful in the future if you can paste your code.

Cheers!

Comb through your program for typos. I had your same problem, but I looked closer and found a problem with my quotation marks. I hope this helps! :)