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 Object-Oriented JavaScript (2015) Introduction to Methods Returning Values

anton zlydenko
anton zlydenko
402 Points

It doesnt works. Copypasted the code and when the button pressed - appears nothing.

code in workspace doesnt works

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

Hi there! First, it would be helpful if we could see a snapshot of your workspace to better help you solve this issue. You can create a snapshot by clicking the camera icon on the upper right side and linking it here.

But the most likely problem is in your browser. Remember that when doing JavaScript, even if you code in workspaces, that code is still rendered in your browser. So let's check some basics first!

  • Make sure you've saved the file
  • If it's still not working, launch the preview again and refresh the page.
  • If it's still not working, try clearing your browser cache/open in private tab to ensure that your updated code is displaying and not old cached data.

Hope we can help you get this working! :sparkles: