Stop memorizing the difference between __proto__ and prototype. Starting from what `new` really does, we break down why the prototype chain exists, how it saves memory, and the real mechanics behind class syntactic sugar.
Posts tagged with class
class
Breaking down the four-step internal process of the `new` operator, revealing that `class` is essentially syntactic sugar over `function` + prototype binding.