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

I am using console.log to print to the console, but the system says I didn't use 'console.log'. What's wrong?

console.log("Begin program") ;

index.html
<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <title>JavaScript Basics</title>
  </head>
  <body>
    <script type="javascript" src="app.js"></script>
  </body>
</html>
app.js
console.log("Begin program");

Not sure what you meant by systems says I didn't use console.log. Is your app.js file in the same folder as index.html? Or could it be in a subfolder js?

Heidi Fryzell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Heidi Fryzell
Front End Web Development Treehouse Moderator 25,178 Points

Hi Frank,

I think that something is broken. I did that challenge several months ago and what you have looks right. I just went back in again and when I put...

console.log("Begin program");

I get that error that says I didn't use console.log()

I wrote an email to Treehouse support, and told them to please put a comment here when it is fixed.

Sorry, that is really frustrating.

2 Answers

Hi Frank!

I tested the Code Challenge with the same answer on our end, and it did pass as expected:

console.log("Begin program");

I'm not finding any issues on our end with this challenge, and also see other students that have recently passed it as well with the same answer. I've made sure to pass along the feedback!

Sorry to be replying to an older thread, figured it was more useful than making a new one on the same topic. I just reached this point in treehouse's course. Sadly it seems I'm receiving the same error as the OP, I've tried on 3 different browser to no avail.