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!
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

SURENDRA MALLA
3,727 PointsAfter your newly created returnValue function, create a new variable named echo. Set the value of echo to be the results
what is the solution? After your newly created returnValue function, create a new variable named echo. Set the value of echo to be the results from calling the returnValue function. When you call the returnValue function, make sure to pass in any string you'd like for the parameter.
The function will accept the string you pass to it and return it back (using the return statement). Then your echo variable will be set with what is returned, the results.
4 Answers

Steven Parker
225,756 PointsYou're really close, but you need to pass only a literal string when you call your function. There are no variables defined outside the function itself at this point that you can refer to (such as "xyz").
var echo = returnValue("Just testing!");

SURENDRA MALLA
3,727 PointsThanks!

SURENDRA MALLA
3,727 PointsSteven you just inspired me to get back on the problem, your list of completed courses are longer than the lines of codes that i have ever written! let me see if i can fix it one more time. i'll get back to you soon.

Steven Parker
225,756 PointsGood luck, and just post your code (and a link) if you're still stuck.

SURENDRA MALLA
3,727 Pointscant do it ... function returnValue(xyz) { return xyz; } var echo = returnValue( xyz + "you like");

SURENDRA MALLA
3,727 Pointsi actually did it.. function returnValue(xyz) { return xyz } var echo = returnValue("what ever " + "you like");

Steven Parker
225,756 PointsGood job, and extra credit there for performing a concatenation!
But just as a general rule, don't do anything the instructions don't ask for. In the more complicated challenges it can confuse the validation mechanism.
Steven Parker
225,756 PointsSteven Parker
225,756 PointsPlease give it your best "good faith" attempt, and then post your code if you still need hep. Please also post a link to the course page you are working with.