as I know, you can return the length of the array either with
array.length
or
array["length"]
but dropping such quotes
array[length]
will return the first element of the array This is the actual code: var list = [5, 7, 10]; then in the console list [length] returns 5, and I do not have iframes or frames in the window, so window.length or just length returns 0 in the console.
source
share