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

Marc Treanor
Marc Treanor
817 Points

Console log notation not showing in the log

I am trying to write a console log notation and it is not showing in the log. Any suggestions?

https://drive.google.com/open?id=0B15bPJrY9DnoUE9BVW1YS2pXS0E

3 Answers

andren
andren
28,558 Points

When you are asking for help debugging your code it's better to post a link or a screenshot of the code itself, not the program running. Without access to the code it's pretty much impossible to say for sure what is going wrong.

But based on the fact that the JavaScript code appears in the page itself my guess would be that you have placed the code outside of a script tag. But again without access to the code I can't say for sure.

Seth Kroger
Seth Kroger
56,413 Points

Seeing the actual code instead of a screenshot of the results would be better but I'd say your JavaScript isn't properly enclosed in <script> tags

Marc Treanor
Marc Treanor
817 Points

I realized I never thanked you for your help, too, Andren. I'm not sure why it worked the next day, but I haven't had problems since then. I appreciate the feedback.