JavaScript JavaScript Loops, Arrays and Objects Tracking Multiple Items with Arrays Build a Quiz Challenge, Part 1 Solution

Bryan Cortez
Bryan Cortez
Front End Web Development Techdegree Student 6,161 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.