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 Review: Giving Information to Functions

Steve Fan
Steve Fan
8,218 Points

Quiz Question: I tried to create many different arguments but none of those is correct answer. Could anyone help plz

Quiz Question: I tried to create many different arguments but none of those is corrected answer. Could anyone explain or give me a hint please?

2 Answers

I'm guessing you're stuck on the question where you have to finish the code. What you have to enter is:

getRandom(12);

You call the function by writing the function's name getRandom() and you pass the value 12 to it by entering the number in the brackets.

Steve Fan
Steve Fan
8,218 Points

Yes it is. I found the problem.

So the answer is: getRandom(12)

NOT getRandom(12);

Because there is already a ; in the answer but i didn't notice that.

Tks