JavaScript JavaScript Basics (Retired) Introducing JavaScript The Console Challenge Answer

Dhanushan Manivannan
Dhanushan Manivannan
1,565 Points

In 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!

Hey 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!

Dhanushan Manivannan
Dhanushan Manivannan
1,565 Points

Hey Justin,

Just tried again to make sure it wasn't server lag, still having the issue. attached is the snapshot, thanks!

This 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

Thanks 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'.


"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 -

  <div class="container">
  <h1>Can you get the JavaScript to work?</h1>
  <script src="scripts.js"></script>

Other than that, I'm pretty stumped. Let me know if any of these things work for you.

Dhanushan Manivannan
Dhanushan Manivannan
1,565 Points

Hey 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.

Glad 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
Dhanushan Manivannan
1,565 Points

Thanks, 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.