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
David Dong
5,593 PointsConsole.log Problems Outside of Workspaces
Whenever I use Console.log somewhere other than Workspaces, it always either says "'Console' is undefined" or it doesn't do anything. For example, text editors don't work, Google's Console, JSFiddle, and everything else. I've seen this question too on the Internet, but it always isn't too clear.
For some reason, I have accidentally type console.log="Hello" in Google's console, and it worked. Is there some sort of theory behind that weird thing?
1 Answer
Steven Parker
243,656 PointsThe console is one of the developer's tools (control-shift-i in Chrome). Do you always have that open when you're using console.log()?
David Dong
5,593 PointsDavid Dong
5,593 PointsYes, I do always click on the "Console" tab. By the way, you can use 'ctrl'+'j' to open it quicker.