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 Basics (Retired) Storing and Tracking Information with Variables Create a variable with a string

Use the document.write() function to print the contents of the player variable to the page.

var player= "Jasmine"

var player= "Jasmine"
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
<script src="app.js"></script>

2 Answers

You don't need to make the text an H1, and you need to use the variable player.

var player = "Jasmine";

I hope this helps. ~Alex

If this answered your question, please provide a Best Answer so that your question is marked as answered. Thanks!

andres garcia
andres garcia
3,113 Points

does not the player need quote? single or double

player does not need quotes. When you reference to variables, you don't use quotes.

You only use quotes with strings.

andres garcia
andres garcia
3,113 Points

ok got it. i understand now. thank you Alexander Davison