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 trialYisroel stadler
2,910 PointsI don't understand this
Javascript
Yisroel stadler
2,910 PointsYes the one on how to return the function for both questions.
4 Answers
Steven Parker
231,236 PointsReturning a value from a function involves placing the value (a variable name or an expression) after the keyword "return".
You may want to review the Getting Information from a Function video.
Yisroel stadler
2,910 PointsI rewatched it but i still don't understand what it want's, i am doing the return value and it still does not work.
Steven Parker
231,236 PointsWhen you say "doing the return value", what exactly are you putting in the blank?
And did you say two questions? I only see one about returning. Perhaps you should quote the whole question(s) also.
Yisroel stadler
2,910 Pointsi typed return message for one of the answers and return warning for the other.
Steven Parker
231,236 PointsYour first answer looks like the correct response to the question I was talking about.
But I think you have misunderstood the other question. The only other question with a fill-in blank is not about returning anything, but it asks you to write the code to call a function.
Yisroel stadler
2,910 PointsYes I am trying to do that second part but i am having trouble with calling the function.
Steven Parker
231,236 Pointsto call a function, you write the function name followed by parentheses: "somefunction()
"
Yisroel stadler
2,910 Pointsthank you!
Steven Parker
231,236 PointsSteven Parker
231,236 PointsThe link button leads to a quiz with 5 questions. Is there a particular one you're having trouble with?