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

JavaScript JavaScript Basics (Retired) Creating Reusable Code with Functions Passing an Argument to a Function

I need help with this step. I'm not understanding at all.

I having a hard time getting my argument to pass.

2 Answers

Ben Reynolds
Ben Reynolds
35,170 Points

Can you share the code you've tried so far?

(Since it seems you passed the first part)

It says to make a var named echo (var echo;) and then set it equal to the returned value from calling the function with a string as an argument. (var echo = returnValue("insert string here");)