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 Combining Strings

You need to put an answer key somewhere so that I can either skip or see an answer. Who the created no way pass mov.

I really do not see how the hell I'm supposed to move forward. I cannot skip or move along in the course!!! This sucks that I have to even type this. I just do not know what the hell it what the syntax error is, what worse I'm not given a hint or chance to skip it.

script.js
var firstName = Benny
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="script.js"></script>
</body>
</html>

Edited: Curb your language, I understand you are upset but that is no reason to use profanity. - Dane E. Parchment Jr. (Moderator)

2 Answers

Dane Parchment
MOD
Dane Parchment
Treehouse Moderator 11,077 Points

Alright first and foremost, I understand that you are upset, but you really need to tone it down and think about what you are upset about.

Now onto the challenge. I am going to be honest, if by this point in the tutorial series, you don't know how to write strings (which was covered in an earlier video) I recommend you go back and start re-watching the earlier videos to better your understanding of the topics being covered.

You must remember that the point of these challenges are to test whether or not you learned enough about the topic to move forward. An answer key would defeat the entire purpose of it. It would be like if you took an algebra class in High School and the teacher gave you the answer key on the exam....how does that test your ability to use algebra, and more importantly qualify you to take higher level math courses that require algebra knowledge. Same concept here.

I recommend when you run into challenges to try your best to solve them, and if you run into issues, re-watch the videos and take notes to make sure you are grasping the topic correctly, then try the challenge again. If you still aren't able to solve it, then you turn to the community for help. And when you ask questions, please don't be hostile or use profanity, pretty sure those are against the forum rules.


Now as for the challenge, you just have to create a variable that holds a String that is your name:

var firstName = "Benny";

You forgot the double quotes and the semi-colon.

P.S Correct me if I am wrong anyone, but I am sure that Treehouse allows you to skip videos, and watch whatever you want in a series, you just won't get the series completion at the end if you don't do all of the videos/quizzes/challenges.

Eric M
Eric M
11,546 Points

No, you're right, you can jump to any video or challenge with the links in the course home page or the breadcrumbs at the top of the video.

Dane Parchment
Dane Parchment
Treehouse Moderator 11,077 Points

Thought so, still it wouldn't be beneficial to skip through them when struggling.

Coding is hard, javascript is hard. You should try to find the answer on your own, and rely on the community here or StackOverflow, or books, or YouTube and get an answer somewhere.

The point isn’t to remember everything, or to always rely on someone else, it’s to get familiar enough that you can help yourself as much as you can and THEN sometimes you need a hand. If you can grasp the syntax, and understand why something works, then you should be okay to say you know it enough to practice it comfortably.

My advice is, in this instance, to get comfortable with the syntax. Take a break from the lessons and mess around in a text editor making variables and combining strings, then come back and answer the quiz. Then build a project based on what you’ve learned after a while. Even professionals get stumped on simple errors and syntax mistakes, just learn to take a break to relax and find the answer.