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