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

Anton Bozhkov
Anton Bozhkov
5,730 Points

Java script basic tutorial alert messages cannot be fixed for some reason

So in the tutorial where you have to fix sripts.js you have to open the console and check for errors, and there should be a syntax error on line 3 or 4, however in the console it says it is line 122 and I assume it is counting the whole code and I do not know why. Even though I go to the correct the problem the alert still won't pop out, I am using chrome from windows. I might need to change some settings in the browser or something, could anyone help what could be the problem. Thank you.

Anton Bozhkov
Anton Bozhkov
5,730 Points

If I reload the page few times eventually the pop-up works but it still shows me that is on line 122 because it checks the whole project code. Is that a common issue?

Anton Bozhkov
Anton Bozhkov
5,730 Points

Yes, they were blocked, they should be working now, have you got any idea why the console would read the whole code and not just the javascript file

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

I'm wondering if maybe you have popups disabled and it's blocking it? Click on the menu in the upper right then choose Settings. Choose show advanced settings way at the bottom and then look under Privacy. There you should find a button that says "Content settings..." Click that and look under popups. If popups are blocked, try enabling them.

Otherwise, we're going to need to see your code :)