Length property in Javascript -


i trying run following code in browser console:

console.log(length); //output 1 in chrome console 

in other ide, output 0.

my question why output 1 if haven't declared variable length.

first of google chrome web browser not ide.

as can see on small screenshot, on google chrome variable length seems linked "window" it's declared system. that's why have value default.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -