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 trial
Michael Caveney
50,144 PointsJS Basics Function Code Challenge 1 of 2
Not getting the returnValue() code challenge at all. Every iteration I've tried has failed, and rewatching the video isn't pointing out what I'm doing wrong.
function returnValue(string) {
return returnValue();
}
console.log(returnValue("hi"));
2 Answers
Jason Anello
Courses Plus Student 94,610 PointsHi Michael,
You want to return your string variable that was passed in.
You can use return string;
Michael Caveney
50,144 PointsThat did it. I had had an iteration of that in there before, but not with the console.log outside of the function. Thanks!