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

Is my browser jacked up?

I was following the steps verbatim but I was not getting the same result. Instead of the words popping up in my web browser like in the video I got a blank screen. I passed the quiz with no issues though.

var playList = [ 'I Did It My Way', 'Respect', 'Imagine', 'Born to Run', 'Louie Louie', 'Maybellene' ];

function print(message) { document.write(message); }

I had the same issue and I went back to make sure all things matched. Did it have to do with the browser you were using?

2 Answers

There it is. It's so weird. Could it have anything to do with the Windows 10 update?

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

You never say what message is, try adding this code:

alert(message("hello"));