decorators Attaching new behaviors through decorators in JavaScript In this article, we will learn about decorators and two different techniques for their implementation - functioning and class-based.