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


Stuck on checking values.

I am stuck on checking values here's what it asked me: Create a method called 'isValidEmail' that takes one argument that returns true when a string with an '@' symbol is passed, false if not. here's my code: funtion isValidEmail(email){ returnemail.indexof("@") != -1. it just keeps saying you haven't define 'isvalidemail' can someone help me.

1 Answer

Casey Ydenberg
Casey Ydenberg
15,622 Points

Well, in the code provided, you misspelled "function". Also, JavaScript is case-sensitive, so isvalidemail is NOT defined, isValidEmail is (or will be once the spelling of "function" is fixed").