The composite design pattern is a structural pattern which allows you to create tree structures of objects and treat them as a single object.
https://t.co/2jFjS8Cos5
#typescript#webdevelopment
Just learned JavaScript has logical OR assignment and logical AND assignment! 🔥
Logical AND assignment:
x &&= "x is truthy" // assigns if the left side is truthy
Logical OR assignment:
x ||= "x is falsy" // assigns if the left side is falsy
#javascript
The Bridge pattern is a structural design pattern that allows you to separate a big class or set of related classes into two different domains: abstraction and implementation.
Learn how to implement it: https://t.co/rpH7c9hLoM
#TypeScript#javascript#webdevelopment
The adapter pattern is a structural design pattern that allows your code to communicate with other interfaces that are initially incompatible.
https://t.co/NkezxXBoqt
#typescript#javascript#webdevelopment