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

Yen Yen To
seal-mask
.a{fill-rule:evenodd;}techdegree
Yen Yen To
Front End Web Development Techdegree Student 4,307 Points

Why am I getting a different console screen output from the instructor's?

I'm on the lesson "Introducing Variables: JavaScript Basics." As far as I can tell, I typed into the JS file exactly what Guil did. But on my console, I get an error message, while he does not.

I have a screenshot showing a side-by-side of the editor and another showing a side-by-side of the console, but can't see how to attach them to this question. Maybe I will be able to do that after posting this question (?).

Anyway, what I'm wondering is: Is it normal that I am getting a different result? If not, what am I doing incorrectly?

1 Answer

Sheila Anguiano
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Sheila Anguiano
Full Stack JavaScript Techdegree Graduate 35,239 Points

You can copy and paste your code, using the suggested formatting Markdown Cheatsheet to copy and paste your code, as well as the error you're receiving to help you find out the problem

//Like this :)