Modular Javascript #6 - Classical Inheritance & OOP with JS

Опубликовано: 23 August 2026
на канале: LearnCode.academy
84,920
965

In this video, we will start covering object oriented programming in Javascript. There are several ways to do it - the first is called "classical inheritance".

Here's the link to the "inherit" function I use here:
https://github.com/nodejs/node-v0.x-a...

Using a constructor, a prototoype, and the "new" keyword, we can create multiple copies or "instances" of a module, each with unique properties, but shared functionality.

We can also implement inheritance in Javascript. If we create a new module, we can inherit the functionality of a parent module with a simple inheritance helper function.

~-~~-~~~-~~-~
Also watch: "Responsive Design Tutorial - Tips for making web sites look great on any device"
   • Responsive Design Tutorial - Tips for maki...  
~-~~-~~~-~~-~