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 trialJacori 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
Treehouse Moderator 145,860 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
231,172 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
Courses Plus Student 4,006 PointsDanny Abbott
Courses Plus Student 4,006 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.