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!
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
using alert and console.log gives me a referenceError
If I try to run both alert() and console.log() on a text editor it will give me referenceError, but if I remove one the error goes away. is this supposed to happen? if not, how do I fix it.
Steven Parker227,102 Points
You should show your actual code to make it possible to investigate the issue.
Also, a text editor doesn't typically have any way to run code, and often will depend on configuring external resources to perform this function. So check your configuration, it could be as likely to cause an issue as the code itself.