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 Build a Quiz Challenge, Part 1 Solution

Bryan Cortez
seal-mask
.a{fill-rule:evenodd;}techdegree
Bryan Cortez
Front End Web Development Techdegree Student 6,176 Points

Why is the function print message there? I don't see that we defined what the 'message' is. Why does it need to be there

I remember he brought it up in a previous video but I didn't understand the logic behind it. Can someone explain it to me? Thanks in Advance.

2 Answers

The 'message' is a parameter which represents the argument which is input in the bracket when you use the print() function. You can use it like: print("any thing here"); then like the code inside of the print(): it will use the write() function to out put the string "any thing here" to the html file.