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 trialBen Ahlander
7,528 Pointsprint(message)
Why is the word "message" being used as the the selector for the print function?
davidkomando
Courses Plus Student 9,017 Pointsdavidkomando
Courses Plus Student 9,017 PointsThe word message is just a user preference. It just makes the function easy to read/follow.
Essentially you send the print function a message to display and it displays the message. In this case message really could be anything as long as it was changed in the document.write code as well. If you wanted to use the word msg or display_notes you could easily do that as well.