
JS Interview Help: Prototype, Class(ES6), IIFE, Scope, Closures, Module Pattern
November 5, 2020
When a new Object is formed, the JS engine adds a __proto__ property to the new object. This points to the prototype object of the constructor function. All JS objects take in, or inherit, properties and methods from a prototype. For instance, Dog objects inherit from Dog.prototype. String objects inherit from String.prototype...