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 JavaScript Basics Hello, JavaScript! Add JavaScript to HTML

When he says refresh the page is there a refresh button within the work space or does he mean the browser refresh?

I feel silly for asking, but where is he refreshing? Every time I use the browser refresh it erases everything I've done and I have to start over. His seems to just be refreshing the work he did. I'm using a Mac so if there's a keystroke command for it I'd like to know.

There is no such thing as a silly question! 😃 Usually "refresh the page" is just referring to a browser refresh, and depending on the program you're writing, it would start you back at the beginning of your program sequence (i.e. prompt to enter a value, etc.). If you're using the coding workspace, all of your code should still be there. When you make an edit to your code base, you have to save (CMD S) your work in the workspace, and then refresh the browser to reflect the changes you made in the code and test your work. Make sure your work is saved on each file in the workspace. You have to go to each individual file type (.html .js etc.) and save it in order for your changes to be reflected in the browser when you refresh. You'll see a red dot on the file tab at the top of the workspace page if something has been edited but not saved. Hope this helps!

Thank you! I wasn’t saving each individual file first so that will make a difference.

1 Answer

Manoj Gurung
Manoj Gurung
5,318 Points

its so sad that this problem exisits, refreshing doens't do anything