design-patternsJavaScriptDesign PatternsHardWhat does the Decorator pattern allow?1Adding behavior to individual objects dynamically without changing their class2Restricting a class to one instance3Defining interchangeable algorithms4Cloning objects from a prototypeBack to list