TLDR
This is the third part of SOLID Principles in JavaScript. If you haven't read the previous two (first part and second part), I highly recommend to read them first and come back here. Liskov Substitution Principle says: If S is a subtype of T, objects of T may be replaced with objects of type S without altering any of the desirable properties of that program. The principle says, that each place, where you use the "Car" class, could be replaced (if needed) with any subclassed of the Car class.via the TL;DR App
no story
Written by serhiirubets | I'm a Fullstack JS engineer with 10 years of experience.
Also, I'm a mentor, teacher, and author of front-end courses.