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 Foundations Functions Anonymous Functions

stumped by challenge

I cannot solve task 2 at the end of the video on Anonymous Functions. I would feel better about spending more time on it if I could be sure there is nothing wrong with the challenge, itself, and that it would accept the correct answer.

2 Answers

Mike Staebell
Mike Staebell
6,177 Points

I was stuck as well. I tried a number of things. It turns out the solution is a little simpler than I originally thought.

In the video, at the 14:00 mark, Jim gave me a hint that helped me pass the challenge. Check that out and let me know if that helps.

Thank you so much , Mike. Function Execution parentheses. Your help saved me untold frustration. You're right, it was simpler than one might expect.

Robert Ho
PLUS
Robert Ho
Courses Plus Student 11,383 Points

Hey Richard,

What did you put for your solution? The task asks you to call the anonymous function right? How would you simply call functions in general? It is the same for anonymous functions. Good luck!