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 trialDhanushan Manivannan
1,565 PointsIn the Console challenge for Javascript when I save my file and reopen it none of the adjustments are shown, why?
After completing the console challenge and writing the correct code, as I save my file in work space and press view, the errors are still there. How can I resolve this issue? Thanks in advance!
Dhanushan Manivannan
1,565 PointsHey Justin,
Just tried again to make sure it wasn't server lag, still having the issue. https://w.trhou.se/9svcxhml7c attached is the snapshot, thanks!
Todd Foster
1,816 PointsThis exact thing is happening to me. The only way I get it to work is to go in and delete my history and if I have to do that everytime and it looks as if I do - not good. In this lesson alone he is correcting, saving, reviewing and doing it over and over again. I need a workaround. These workspaces are more trouble than they're worth for this type of learning because of this very issue. Any suggestions?
3 Answers
Justin Iezzi
18,199 PointsThanks for posting the snapshot!
I checked it out, and everything seems to be working on my end. No errors.
Can you get the JavaScript to work?
My first JavaScript program
I'm practicing 'debugging'.
and
"Begin Program" scripts.js:1:1
"End program" scripts.js:6:1
Both dialogs pop up too, so everything appears to be working.
There's a few things that could be wrong on your end. JavaScript might be disabled on your browser. I recommend trying to preview the site with a different browser than the one you're currently using as well.
Also be sure to link the JavaScript file at the end of your body, like this -
<body>
<div class="container">
<h1>Can you get the JavaScript to work?</h1>
</div>
<script src="scripts.js"></script>
</body>
Other than that, I'm pretty stumped. Let me know if any of these things work for you.
Dhanushan Manivannan
1,565 PointsHey Justin thanks for responding, I tried playing around with it a bit more but just couldnt get to work on chrome. Just tried it on firefox and it works perfectly! Thanks for the advice.
Justin Iezzi
18,199 PointsGlad it worked for you! Your Chrome browser may have JavaScript disabled. It could be a numerous amount of potential causes though, plugins, security settings, etc.
Dhanushan Manivannan
1,565 PointsThanks, and I believe its just an issue with having multiple Workspaces for javascript. When I closed that workspace and tried another task, it worked, in chrome. Looking at older forum posts for different tasks this seems to be the issue. I think the code just isn't registering in the workspace.
Justin Iezzi
18,199 PointsJustin Iezzi
18,199 PointsHey Dhanushan,
I can take a look for you if you link me your workplace snapshot by pasting it here. Assuming it's not server lag, I may be able to tell what's wrong by looking at it. Thanks!