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 (Retired) Storing and Tracking Information with Variables Working with Strings and Finding Help

Javier Lopez
Javier Lopez
390 Points

when i try to preview my code on workspace it opens a page saying "can you get the javascript to work?" instead.

I'm wondering if I'm blocking access somehow.

2 Answers

Zachary Miles
Zachary Miles
5,377 Points

Please provide your code, so that we may assist you.

Javier Lopez
Javier Lopez
390 Points

var passphrase = 'Open Sesame'; console.log(passphrase.length);

KAMRAN IMRANLI
KAMRAN IMRANLI
4,107 Points

It is because, you are seeing on the page what is written in your index.html file. If you want to see the result of your Javascript code, you should look at your console (Alt+Shift+J, this is for Chrome on Windows), according to your code [console.log(passphrase.length)].

Hope this helps!