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 Review Concatenation

Jonathan Gardner
Jonathan Gardner
8,383 Points

Incorrect quiz response

One of the questions in the quiz asks to finish:

var _ = _ + ‘Script’;

So that it returns a variable with the string ‘JavaScript’

When I submit:

var message = “Java” + ‘Script’;

I get an incorrect response. What is wrong here?

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,858 Points

Hi Jonathan,

Your answer is correct, and when I do the quiz, that does pass. Looking closely at you code snippet above, it looks like you have fancy quotes surrounding Java. These are common in word processors, so if you are copy/pasting answers, your code will usually break as IDEs and Text Editors (including the code checker on Treehouse) does not like these and do not recognize them as being quotes. Have another go, but make sure you aren't using fancy quotes.

" " --> normal and accepted quotes
“ ” --> fancy quotes not accepted

But nice work! :) :dizzy:

Jonathan Gardner
Jonathan Gardner
8,383 Points

Worked fine on my laptop just now. I was doing it on my phone and while I wasn't copying and pasting from another source I can only assume it was putting in the fancy quotes. Anyway, thanks.