Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics Storing and Tracking Information with Variables Introducing Variables

typed everything exactly as instructed and i kept getting a blue screen nothing else when i preview it

i used the workspace and opened the console in my browser.

var message = "hello"; console.log(message); message = "hello from javascript basics"; console.log(message);

2 Answers

If you are using Chrome, open a new window, open the console and copy & paste var message = "hello"; console.log(message); message = "hello from javascript basics"; console.log(message); there, now you should see in the console of your browser your message

thank you but i dont understand why im not seeing it when i use workspace as well. shouldnt it show when i save and click preview?

Because you are writing a console app in JS, if you want to see the result of your code in the console of your workspace you must type in the console of the workspace node [name_of_the_file].js and finally press enter.