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 trialasia flowers
2,496 Pointstyped 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
fredyzegdi
Full Stack JavaScript Techdegree Student 12,899 PointsIf 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
fredyzegdi
Full Stack JavaScript Techdegree Student 12,899 PointsBecause 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.
asia flowers
2,496 Pointsasia flowers
2,496 Pointsthank 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?