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 JavaScript Basics Hello, JavaScript! Write JavaScript Statements

console.log("Begin program"); <---Doesn't work here but does run in the code editor.

Keeps saying "Bummer: You didn't use console.log()

2 Answers

Steven Parker
Steven Parker
229,708 Points

Your editor probably doesn't care where you put that, but for the challenge it must go in the app.js file (on the tab with that name). Placed correctly, that will pass task 2.

I placed it in app.js. It worked when I tried Firefox instead of Opera. It must be a browser compatibility issue.

Thanks for taking the time to look at it and reply!

Also, it doesn't appear in the console in "Inspect element" on Opera but it does show the logs on Firefox. I have not tested other browsers yet. I still learned some things from this bug about differences in web browsers that will help me in the future.

Steven Parker
Steven Parker
229,708 Points

I wouldn't expect the browser to affect the challenge outcome. And you shouldn't need the "inspect" facility to complete the challenge.