SOLID Principles in JavaScript: What Does the "L" Stand For?

Written by serhiirubets | Published 2022/03/16
Tech Story Tags: solid | javascript | js | solid-principles | solid-in-javascript | liskov-substitution-principle | design-patterns | oop

TLDRThis 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.
Published by HackerNoon on 2022/03/16