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 trialAskia Harris
7,962 PointsJAVASCRIPT RETURN VALUE QUIZ NEED HELP
function(arrayCounter){ if (typeof (arrayCounter) === "string"){ return 0;} else if{(typeof (arrayCounter) === "number"){ return 0;} else if { (typeof (arrayCounter) === "undefined"){ return 0;} else{return arrayCounter.length;} }
Brad Bucceri
7,102 Pointsfigured it out :)
2 Answers
Askia Harris
7,962 Pointsthanks guys i figured it out
Prabhakar Undurthi
4,846 PointsCan you share the code , I couldn't fix it myself anymore.... Thank You in Advance.
Brad Bucceri
7,102 PointsTake a step back and think about the challenge logically. Askia's code that is shared above helped me to think along the right lines. The code itself isn't the correct answer but it led me to the right train of thought.
Brad Bucceri
7,102 Points//--- moved to comment ---//
Brad Bucceri
7,102 PointsBrad Bucceri
7,102 PointsHey Askia Harris, what was the solution - i can't get my head around this question.
Thanks!
Brad