Interfaces


#1

What is an interface in JavaScript Programming language?


#2

Javascript does not use interfaces since Javascript is a functional oriented language.

Javascript es6 is a little diffrent as it is a bit more based on Object oriented programming. It still does not use interfaces tho.

If you do want to use interfaces for javascript you should take a look in typescript.

As for what interfaces in general do, there is a very nice answer for this on stackoverflow. This answer can be found here.

Hope it helps.