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'm entering console.log("Begin Program") but keep being told I'm not using console.log.

I wanna report what I think is a bug...

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

2 Answers

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hi Gonzalo Blasco 👋

Thanks for reaching out and sharing your code! The code you've written in your app.js file looks good to me and should indeed pass the test. Unfortunately, something seems to be off with the tests that are being ran for the first step in the challenge.

The issue for this actually originates from the script tag you've written in the first task of the challenge. Looking at that line the type value you've provided is not a valid value, changing the value to be "text/javascript", or completely removing the attribute should fix the issue.

<script src="app.js" type="text/javascript"></script>

or

<script src="app.js"></script>

I'm sorry for the inconvenience, I'll bring this issue up with the team to update the tests for this challenge 🙂

Hope this helps, Happy Coding!

Ok, My bad was using type="javascript" instead of type="text/javascript", ups... thanks Ronald..