jeudi 28 juillet 2016

when to use module vs prototype?

Module pattern vs prototype pattern appear to do similar things in js. They essentially wrap a bunch of js code to encapsulate and provide a type of OO interface. Are these techniques essentially interchangeable or are there scenarios where one of these techniques should be used instead of the other?

Aucun commentaire:

Enregistrer un commentaire