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

Bummer: Make sure you print 'Begin program' in the console. i did it right but it's not responding

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

2 Answers

For this challenge, where do you 'inspect' the page so that you can see the console.log message "Being program"?

Steven Parker
Steven Parker
231,184 Points

Challenges often do not display any result, but they have a mechanism that verifies that the code does the proper thing.

Steven Parker
Steven Parker
231,184 Points

The instructions ask you to print "Begin program" to the console. Note that the string has no punctuation in it. But the code above adds an exclamation sign, which the challenge is not expecting.

Also, the instructions did not ask for an alert. For best results with all challenges, do only what the instructions ask for. Doing other things (even if the code runs) can confuse the validator and cause the submission to fail.