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 trialVanessa Yeo
1,080 PointsVariables quiz
Hi there,
I'm having a little problem with this question, "Use the document.write() function to print the contents of the player variable to the page."
I don't quite understand it and I'm stuck. Help!
Thank you.
1 Answer
Henry Goh
20,201 PointsHi Vanessa,
I assume the player
variable contains html?
If that is the case, you can just write document.write(player);
in the script tag of your html.
You may refer to this link.
Vanessa Yeo
1,080 PointsVanessa Yeo
1,080 PointsThanks for your help!