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 trialjohn Soto
Full Stack JavaScript Techdegree Student 4,697 Pointscan't get it right. The function is good with no errors in the console, but still can't pass this quiz
function returnValue (drink, name) { var echo = drink + ' it is good'; return echo; }
returnValue( 'coffee' , ' it is good');
function returnValue (drink, name) {
var echo = drink + ' it is good';
return echo;
}
returnValue( 'coffee' , ' it is good');
<!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
miikis
44,957 PointsHey John,
You've misunderstood the Challenge: Task 1 wanted you to create a function called returnValue that simply returns any value that you pass it; Task 2 wanted you to call the returnValue function and assign the returned value to a variable named echo. Let me know if you need more help.