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
hello, I have no idea why it says task one is no longer passing because in my opinion it definitely should!
can someone help me with finding my mistake?
There are two issues with your code:
You don't actually call the
toUpperCasefunction, you only reference it. In order to call functions you have to place parenthesis after the name of the function like this "
returnkeyword is used to return data from a function, an if statement is not a function so using that is invalid. This is the reason why task 1 is no longer passing, this invalid syntax crashes the code checker as it tries to validate your code.
If you fix those two issues like this:
Then you'll be able to pass onto task 3.