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 trialKaren Creighton
30,185 Pointsfunction challenge not working
I'm on the last section of JavaScript Basics, and the second task of the first challenge in the functions section keeps giving me an error message that the first task is not passing. Any suggestions on what is wrong with this code?
function sayHi(){ alert (sayHi); }
1 Answer
Steven Parker
229,644 PointsWhat course, and what challenge (name them or provide a link)?
But I'm guessing at the very least, the content of the alert needs to be quoted:
function sayHi(){ alert ("sayHi"); }
Karen Creighton
30,185 PointsKaren Creighton
30,185 PointsYup, that was the ticket - thanks! I'm currently on a public computer that uses IE and won't let me get to Chrome, so the link to the course won't work today. It's JavaScript Basics, creating a function challenge.