Skip to content

Instantly share code, notes, and snippets.

@Rsmk-code
Forked from Kishimoto96/inheritance.md
Created April 6, 2023 17:56
Show Gist options
  • Save Rsmk-code/1a1f143a6646b641685b585402a3d029 to your computer and use it in GitHub Desktop.
Save Rsmk-code/1a1f143a6646b641685b585402a3d029 to your computer and use it in GitHub Desktop.

Inheritance in JavaScript

  1. What is inheritance in JavaScript, and how does it differ from inheritance in other programming languages?
  2. What is a Prototypal inheritance model?
  3. What is the difference between classical and prototypal inheritance?
  4. What is a constructor function in JavaScript, and how does it differ from a regular function?
  5. How does the .prototype property work in JavaScript, and what is its relationship to constructor functions?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment