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

How do I access the original Javascript code in a workspace that comes with a video after I've already changed it?

I sometime change it so much that I can't use the undo edit feature to go back to the original code.

1 Answer

Victor Stanciu
seal-mask
.a{fill-rule:evenodd;}techdegree
Victor Stanciu
Full Stack JavaScript Techdegree Student 11,196 Points

Hey luisgomez7!

I believe the only way to do this is by going to your Workspaces and deleting it, then creating it again from the video page. Keep in mind that this solution completely resets all the code!

I suggest you start writing code on you local machine, using a code editor like Visual Studio Code, Atom or Sublime, and even begin using Version Control Systems like Git.

Hope this helps!