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

Getting an error on line "41" out of 40 total lines, need help!

I've gone back to strip all my code out to make sure it isn't the issue, the basic 3_deck.js file has the following error message when run:

treehouse:~/workspace$ node 3_deck.js
/home/treehouse/workspace/3_deck.js:41
});
^

Those characters don't show up anywhere on screen and can't be scrolled to or accessed. I've tried copy and pasting the code to a new file, still no luck.

1 Answer

Steven Parker
Steven Parker
231,269 Points

Your file may not contain those characters but perhaps it should. Maybe node is telling you that it expected to see those but they were missing.

If that's not the issue, make a snapshot of your workspace and post the link to it here to allow a complete analysis.