Can i use static for implementations? What is the best way to write classes with Interfaces and Implementations in Javascript?
Thank you.
Can i use static for implementations? What is the best way to write classes with Interfaces and Implementations in Javascript?
Thank you.
Copyright © 2021 Jogjafile Inc.
js has not class inheritance it has prototypal inheritance. And more importantly js is weakly typed so theres no real need for interfaces. If you however want to make assertions, you may use TypeScript or your own small script that does so.