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 trialJong Kim
6,145 PointsHow do we find where the error exactly happened after i opened console?
I eventually opened javascript console to figure out why it doesn't work for the programming, and the console said there are only 1 error, but it shows me there are lots of red and purple words which i still cannot figure out where is the 1 error happened. Does anyone know how to find the 1 error easily through JavaScript console?
P.S I'm using chrome by mac book pro.
1 Answer
Omaid Royeen
Courses Plus Student 1,141 Pointsyour JavaScript filename with code line would be underlined, so click on it and it will take you to the code line where you see error. Firefox is more precise with parentheses errors than google chrome.
Steve Mustanski
15,093 PointsSteve Mustanski
15,093 PointsUsually, the line number of the error is on the right hand side of the console. Often the purple words are the result of your console.log statements. So your could have an error and some console output in the console. Usually, the program stops if you have an error though.
Can you post a screen shot or post the code? I might be able to help out if I see it.