as i know one can return the length of an array either by using
array.length
or
array["length"]
but omitting the quotes like this
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 no i don't have iframe or frames in the window, so window.length or just length return 0 in the consol.