From this question, I can understand that the API interfaces and constructor functions are two distinct concepts.
In javascript there's no notion of interfaces, so how are these interfaces used in javascript?
I mean they look like constructor functions in my eyes typeof(Node) === 'function' // true
But they are not, we cannot use them to construct elements
So how does javascript use these interfaces or how does it implement them while it doesn't have the concept of interfaces in its core like java or C#?
It has a behaviour with them that emulates that of constructors someElement instanceof HTMLElement // true
and they have prototypes like constructors and you can extend them with methods using these prototypes but they aren't constructors because they can't be used to construct dom elements.