When we want to know the length of an array we call the length property of JavaScript. But my curious mind just wants to know how actually JavaScript really counts the value of an array internally. What kind of algorithm or methodology it really used for counting the length of an Array when the array holds a large number of elements?
I just randomly create some arrays with large elements of data and it returns the length property within a very short time. It really doesn't affect whatever the size of the array is.