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 trialBryan Cortez
Front End Web Development Techdegree Student 6,176 PointsWhy 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
Wei Zhang
260 PointsThe '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.
Bryan Cortez
Front End Web Development Techdegree Student 6,176 PointsThanks for the explanation.