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 trialMark Zeitler
6,718 PointsCannot 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?
var player = 'jasmine'
<!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
Jacob Mishkin
23,118 PointsUse a Capital "J" for "Jasmine". It should work after that.
Steven Parker
231,271 PointsString 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 (";").