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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Jacori Porter](https://secure.gravatar.com/avatar/91093387fe14a13d6d62f02e3705a485?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Jacori Porter
164 PointsYall need to fix ***********
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript Basics</title>
</head>
<body>
<main>
</main>
<script src=app.js></script>
alert("I am Programming");
</body>
</html>
console.log("Begin program");
alert("I am Programming!");
alert('End program');
console.log('End program');
![Jason Anders](https://uploads.teamtreehouse.com/production/profile-photos/3512822/micro_Jason_s-Pic.jpg)
Jason Anders
Treehouse Moderator 145,859 PointsModerator Edit:
Titled redacted. Original titled violated "Terms of Use" with profanity.
Jacori Porter This is to inform you that the language used in the titled was not appropriate for the Treehouse Community..
Also, when posting a question, an INFORMATIVE title with an actual question will yield the best results for helping you trouble shoot your problem with the challenge. Others would not be able to help you if they don't understand the what the code you have created is supposed to do or the problems / errors you are encountering.
Thank you,
Jason
Treehouse Community Moderator
1 Answer
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 PointsI'm not sure who "Yall" might be, but it looks like you've added some code that is not part of the challenge. The instructions for task 4 only ask you to add a new console.log
statement to app.js
, not another alert.
You can fix it by simply removing the extra second alert from app.js
.
And while it doesn't affect the challenge, JavaScript code should also not be mixed in with the HTML code. So the other alert line line should not have been added to index.html
.
Danny Abbott
2,901 PointsDanny Abbott
2,901 PointsYo... calm down. There is no reason for you to be swearing and attacking the company you are paying.
you don't put an alert JS code in the HTML.
To load the script, which you have right is between the script tag, the link to the .js file.
just delete the alert("I am Programming") in the html file and it'll work just fine.