Share your repls and programming experiences

← Back to all posts
Just a push
AngelaThomas2 (3)

I feel semi accomplished on this one, because I was able to return a value independently. However, I am unclear on why I am only able to return partial values. I have figured out that in my let view = [] box, it is pulling the number of items I have in the array and returning it in the code. I am sure this has everything to do with my return statement at the bottom of the code. What do I need to do to modify my code in order to count the actual items in the array and not just what I put in the let box?