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 trialGerrad Brown
1,497 PointsOops! It looks like Task 1 is no longer passing.
i am just a little frustrated that it keep telling me "Oops! It looks like Task 1 is no longer passing." i know that my code is in the right area...but maybe im missing something. please help me with this.
function returnValue(drinks){
var echo=returnValue();
return drinks;
}
returnValue(pipsi);
<!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>
1 Answer
Matthew Long
28,407 PointsYou're close. You probably misread step two. It wasn't asking you to modify the function. Also, your parameter pipsi is not a string. Don't forget quotes.
function returnValue(arg) {
return arg;
}
var echo = returnValue('Hello world!');
Gerrad Brown
1,497 PointsGerrad Brown
1,497 Pointsthank you very much for your help!! It worked!!