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 (Retired) Introducing JavaScript The Console Challenge

Elizabeth Schultz
Elizabeth Schultz
1,989 Points

When I bring up the console it does not show any errors or print any messages.

While in the JavaScript class the Console is failing to show code errors and also failing to print messages meant to print to the console. I have re-launched the workspace several times to no avail. Ideas?

2 Answers

Antonio De Rose
Antonio De Rose
20,878 Points

please send the code that you have tried.

Nick Renteria
Nick Renteria
10,258 Points

My guess is that it's some problem with the way the script tag in the HTML is linked to the javascript file. But if you copy and paste your code between two sets of three backticks (the ` above the tab key usually) then we can see it and get a better idea of the problem.

So it would look like: ''' (except three backticks, not apostrophes) <code goes here> ''' (except three backticks, not apostrophes)

That's what makes it look like this:

console.log('This is monospaced code.');
Elizabeth Schultz
Elizabeth Schultz
1,989 Points

No need to answer this question anymore. I messed with Safari for a long time and got the console to work a little, but never fully. I installed and used Firefox and all of it worked immediately. Something about the way settings are for the Mac/Safari I am guessing.