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 trialJustin Clark
Courses Plus Student 139 PointsNeed Help with an error
Working out of the workspace on Dom scripting by example, I do the first steps as instructed. However, I keep getting a error code on the console that says console is not defined in app.js?? Is there a setting I need enable to not get that code so i can get the program to work??
3 Answers
Monica Powell
8,823 PointsI had the same problem and changed <script type="text/javascript" src="app.js"></script>
to <script src="app.js"></script>
and then it worked. Hope that helps!
Loris Guerra
17,536 PointsI think you should try it out in your workspace, so it will be easier for you to share your project and for other people to debug your code. Anyway, there shouldn't be differences between working in Treehouse's Workspace and working on your machine, So be sure to check your code again for syntax errors
tjeiosajfdksl
Courses Plus Student 8,981 PointsI had the same problem then I saw I had the reference to wrong folder in src:
<script src="app.js"></script> changed to <script src="css/app.js"></script> then it worked
Susan Rusie
10,671 PointsSusan Rusie
10,671 PointsMake sure you didn't do what I did. I didn't see anything in the console until I looked back at my code and realized I had two closing script tags. Once I made the change, the message appeared in the console as expected.