As MDN says, the for...in statement has access to all properties (and values) related to an object.
I am not sure about why are methods also listed with this statement: if I loop on the document object I get not only the properties list related to it, but also the methods such as prompt() or focus()
Why are these methods named as "properties" on all documentation related to the for...in loop?
name : valuepairs and thevaluecan be a function, this is how you get a method. I do not think thatfor...inis meant to be used on things likedocumentpromptandfocusenumerable?