Home

Javascript Intermediate 9 - Inheritance model with a prototype chain, a demostration with pseudoclassical inheritance

Runtime Code vs Library Code First of lets clarify a distinction between the following concepts in a programming language. Core or runtime code of a Programming language: Defines the interpreter or compiler Library Code : Code written on the same programming language (same level of abstraction) that defines basic functionalities that every...

Read more

Javascript Intermediate 8 - Differences between __proto__ and .prototype on Constructor Functions

Now that we have established the relationship between instanceObject.__proto__ (we are going to use Object.getPrototypeOf()) , and Constructor.prototype we see that. function Food () { } var popcorn = new Food(); console.log(Object.getPrototypeOf(popcorn) === Food.prototype); // True We can set its prototype properties as function Food () ...

Read more