I'm currently learning JavaScript using the Mozilla Developer Network as a reference.
It confuses me that MDN refers to objects as interfaces.
For example: Document.createTreeWalker()
At the bottom, there is a link to the TreeWalker Object, but it says:
The interface of the object it creates: TreeWalker
How can TreeWalker be an interface if I can instantiate it? And TreeWalker is only an example, almost every object in MDN is referred to as an interface.
I come from a Java background, so the use of interface in this context is not clear to me. Does interface in JavaScript mean something different than in Java?