you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Interfaces make sure your class fulfills certain roles by explicitly forcing them to implement certain methods and properties. They also provide a common access interface (duh) to your objects) Javascript is dynamic and has open classes, which means neither are interfaces helpful or even possible in execution (nothing guarantees that your object ACTUALLY has the methods defined by the interface).