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

JavaScript JavaScript Basics (Retired) Creating Reusable Code with Functions Review Creating Reusable Code with Functions

davide totaro
davide totaro
5,559 Points

function warning() { alert('Warning, warning, warning!'); } ..........

anyone can help me to fill it up the question?

4 Answers

What the question wants you to do is to call the function. In other words write the function name after the completed function.

So in the question it gives you a completed function named warning. Now in order to use that function, you have to "call" the function. in other words, write the function name, in this case it's "warning()".

Don't put "warning()" in there as it will fail it starts with a capital W and the ; is already there so its Warning()

They are asking you basically to call the function. Most people fail this one due to a typo..good luck