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 Useful Array Methods

I dont understand how the property message works in the function?

the message property i dont understand how it works it is not declare nor its not a prompt command so how can it be place in function in work properly i does get understand how the information from the playlist get to the message

1 Answer

Hugo Paz
Hugo Paz
15,622 Points

Hi Amon,

In this video , the function print is not used in the exercise. All the printed messages are from the while block.

Thanks now everything make sense this was confusing me

huckleberry
huckleberry
14,636 Points

Hugo Paz

what? the print function that Dave created, which has 'message' as its only parameter, is used 3 times inside of the loop what do you mean the function print is not used in the exercise?

Is their a built in print function that you're referring to? or... ?

Cheers,

Huck - :sunglasses: