Mars Assignment 3

I looked over this code an do not see where my type error is. Researched error “Cannot read property ‘length’ of undefined”
and got ideas that I tried however error still remains.

I assigned only result variable before the for loop. And returned the response as an object with message.name and results[]. It worked this way for me.

It dint work for me too when I assigned a response variable.

Thank you for your reply. Still not getting test to pass. What you are suggesting thought that was what I did.

I am having a similar problem, if I figure it out I’ll try to shed some light for you! (don’t hold your breath though, it’s been like 5 days.)