I am working with an array that is made up of an unlimited number of objects, all with the same structure. When I log the entire array, it shows up like this:
[object], [object], [object], and so on...
Adding a new object to the array means I could either implement a counter or use a normal for loop to count the objects. But is there a more efficient way to count all the objects?
Why is it that array.length does not work in this situation?