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 trialThaddeus Lorenz
3,434 PointsSaying task 1 not working, I go back to task 1 hit recheck, says it works, then I get to task 2 and says task 1 not work
Task 1 not working, then working, task 2 not working because of task 1
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScript Basics</title>
</head>
<body>
<script>
console.log ("Begin Program");
document.write("Welcome to JavaScript Basics");
dialog ("End Program");
</script>
</body>
</html>
1 Answer
Steven Parker
231,275 PointsSyntax errors will cause previous task(s) to fail the re-check.
For task 2, you added a line calling a function named "dialog". But since this is not a valid function name it causes the entire script to fail the checks, and task 1 is always re-tested first.
Hint: take a look at what you wrote for task 1. Maybe the answer for task 2 is something similar?