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 trialbryce cox
765 Pointsopps! it looks like task 1 is no longer passing? message but I have not changed task 1???
I pass the salesTotal variable part but when I click "check work" for the profit varible task it tells me that the salesyotal is no longer working? Also today the workspaces would'nt print to the demo screen.
var wholesalePrice = 5.45;
var retailPrice = 9.99;
var quantity = 47;
var salesTotal= retailPrice * quantity;
var profit= salestotal - wholesalePrice * quantity;
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScript Basics</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>
2 Answers
Robert Lyon
7,551 PointsYou need to capitalize the letter T in the variable salesTotal on the last line.
bryce cox
765 Pointsthank you Robert, that was a simple error I should have caught but the feedback message really threw me off.