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

Mark Zeitler
Mark Zeitler
6,718 Points

Cannot understand challenge task requirements: Create a player variable with the string 'jasmine' in it. Context unclear

Does it want to create a variable player = jasmine? Create a blank player variable and later rename it jasmine, or am I completely missing the point of the task?

app.js
var player = 'jasmine'
index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>
<script src="app.js"></script>
</body>
</html>

2 Answers

Use a Capital "J" for "Jasmine". It should work after that.

Steven Parker
Steven Parker
231,248 Points

String comparisions in JavaScript are case-sensitive. Use the exact string that the challenge is asking for. I like to cut-and-paste to make sure I'm not misreading the word(s).

Also, even if the challenge does not enforce it, for good practice be sure to end your statement with a semicolon (";").