OOP essentials in JavaScript/TypeScript
Comes up in: Low-level design
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
- encapsulation, abstraction, inheritance, polymorphism with TS examples
- interfaces
- composition over inheritance
- when OOP fits frontend (SDKs, editors, games, players) and when functions + data fit better
Words you will know
What you will practise
- model a media player with interfaces
Interview questions this answers
- Explain SOLID with frontend examples.
- Composition vs inheritance in React?