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
Neil Berriman
3,230 Pointslast code challenge Utility Methods stuck please help!
This is the challenge: Call 'map' on the inputs with the class 'required' and return each of their values and store it in a variable named 'values'
var $inputs = $(".required");
var values = $inputs.map(function(){
return $(this).val() == "";});
Bummer! The values aren't what we're expecting. Please try again.
This is the Bummer I get, can anyone help!
Neil
2 Answers
Chase Lee
29,275 PointsTake out:
== ""
The equal signs and the double quotes are checking for an empty string, we are checking for values.
Neil Berriman
3,230 PointsHi James, Thanks for your help I am stuck on the next "inArray method" my code is this,
return $.inArray(true, Andrew);
I don't get a Bummer! it takes me back to the previous task again please can you help.
Neil
Chase Lee
29,275 PointsChase Lee
29,275 PointsAlso try taking out the
var inputs, and the last semicolon.