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 trialChaz Mabry
7,839 Pointshow is this not a function?
not sure why its saying i didn't create a function. This code runs fine in the workspace
function returnValue( argument ) {
var value = arguement;
return value;
}
<!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
Jeff Lemay
14,268 PointsYou spelled argument wrong inside the function. Other than that you'll pass task 1.
Chad Donohue
5,657 PointsI believe argument
is misspelled when you are assigning it to value
;
This would cause a ReferenceError because arguement
is not defined.
Chaz Mabry
7,839 Pointsthanks. I feel dumb. I didnt think to check my spelling because it said i didn't create a function so I guess that just threw my off
Chad Donohue
5,657 PointsIt happens to everyone. A new set of eyes always helps.
Chaz Mabry
7,839 PointsChaz Mabry
7,839 Pointswow. thanks