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
Sarah Breidenbach
4,490 PointsWhat do JavaScript validators mean by columns?
For example, I got this warning: Expected 'this' at column 5, not column 3.
What is that referring to?
1 Answer
Steven Parker
243,318 PointsNormally it has to do with the characters on the line:
// X <-- this "X" is in column 4
// Y <-- this "Y" is in column 10
But since spacing is not normally important in JavaScript, this message seems very peculiar. It would help to see the actual code involved. If possible, make a snapshot of your workspace and post the link to it here.
Sarah Breidenbach
4,490 PointsSarah Breidenbach
4,490 PointsI was looking at different validators yesterday and I don't remember which one mentioned columns. Probably not a great one judging from your answer. I've settled on JSHint which seems to be good. Better than JSLint which is just confusing.