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 trialDimitri Vorontzov
8,455 PointsError in the Quiz:
var first_name = "Jim"; var last_name = "Hoskins";
console.log(first name + " " + last name);
Has to be some kind of display issue. Underline character is not displayed in variable names. As seen in Chrome for Mac. Would love to add a screenshot but looks like there's no such option.
5 Answers
Matt Bowlby
8,806 PointsThanks! That makes much more sense now.
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsIf you want a screenshot of the whole screen press: command + shift + 3 and for a window you can capture: command + shift + 4.
Add the screenshot I want to see what you mean.
Dimitri Vorontzov
8,455 PointsI actually wasn't asking how to take a screenshot on a PC or Mac... ;-)
Matt Bowlby
8,806 PointsSo is this indeed an error in the quiz? As I understand it, the quiz should read:
var first_name = "Jim"; var last_name = "Hoskins";
console.log(first_name + " " + last_name);
Would this be correct?
Dimitri Vorontzov
8,455 PointsYes, Matt, that is correct β or rather, there's a minor problem with how the code is displayed. If you copy and paste the code from the question, you will see that underlines are actually there βΒ however, at least in some browsers, for whatever reason, one or two pixels at the bottom of the DOM element containing the question don't fit inside the space allocated for them, so they cannot be seen, unless you use the tiny scrollbar on the right. So it is not really error in the code, but cosmetic issue with the way that code is displayed... as I was able to determine after countless hours of debugging. ;-)
Sherrie Gossett
14,924 PointsSame here Matt: The underscores included in the variable names don't display in Safari or Chrome.
Dimitri Vorontzov
8,455 PointsActually, Sherrie, I believe it's not so much a cross-browser than it is a usability issue. There's a scrollbar on the right side, which allows to scroll down just far enough to display those underscores. But that does seem to fool people. I think this is an excellent illustration of how user perception works, and how important it is to really pay attention to usability, whenever there's a GUI of any kind.