What is the Strategy design pattern?
The Strategy pattern is a behavioral design pattern that enables you to define a group (or family) of closely-related algorithms (known as strategies). The strategy pattern allows you to swap strategies in and out for each other as needed at runtime.
📚Materials/References:
GitHub Code: https://github.com/pkellz/devsage/blob/master/DesignPatterns/StrategyDesignPattern.js
"Design Patterns Explained Simply" Ebook: https://payhip.com/b/MLtJ
🌎 Find Me Here:
Twitter: https://twitter.com/realDevSage
Ebooks: https://payhip.com/devsage
Discord: https://discord.gg/BP8wPv6raA
Merch: https://cottonbureau.com/people/devsage