Skip to content Skip to sidebar Skip to footer
Showing posts with the label Prototype Programming

Proto Inheritance From Es6 Class

I have an old codebase full of subclasses of a some external class, using prototypal inheritance. R… Read more Proto Inheritance From Es6 Class

How To Create An Object With Private Members Using Object.create() Instead Of New

EDIT: I figured it out from Bergi's answer in the end. Thanks Bergi. pubPrivExample = (functio… Read more How To Create An Object With Private Members Using Object.create() Instead Of New

Javascript: Is It Possible To Inject New Functions Into A Base 'class/object' That Will Be Available In All Sub-'classes/objects'?

I am trying to add a new property to a class in an existing JavaScript framework (Wireit). The base… Read more Javascript: Is It Possible To Inject New Functions Into A Base 'class/object' That Will Be Available In All Sub-'classes/objects'?