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
Andrew Schumacher
17,487 PointsCode Challenge: jQuery Utility Methods
These are the instructions: "Using the 'inArray' method check if the array contains the string 'Andrew'". Here is the code: $.inArray('Andrew'); Don't I need to know the name of the array and pass it in as the first argument of ".inArray"?
1 Answer
Crystal Bulmahn
6,863 PointsThe previous step says: "Call 'map' on the inputs with the class 'required' and return each of their values and store it in a variable named 'values'."
That variable 'values' is the array you're looking for. Also, the array should be the second argument.