---
title: "Discussion on \"Decorator in JavaScript\" | Hashnode"
description: "Discussion on \"Decorator in JavaScript\". In JavaScript, a decorator is a design pattern that allows you to modify the behavior of an object or function dynamically by wrapping it with another object or function. Decorators provide a way to add or change functionality without modifying the o..."
url: "https://hashnode.com/posts/decorator-in-javascript/64d06f1d4b47faa3d6a9a643"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Decorator in JavaScript](https://indracit.hashnode.dev/decorator-in-javascript?utm_source=hashnode&utm_medium=feed)

In JavaScript, a decorator is a design pattern that allows you to modify the behavior of an object or function dynamically by wrapping it with another object or function. Decorators provide a way to add or change functionality without modifying the o...

Aug 7, 2023 · 2 min read · indracit.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Indracit S](https://hashnode.com/@indrajithij98)

@indrajithij98 · Chennai, India

  
[View profile](https://hashnode.com/@indrajithij98)

Software Engineer

Software Engineer | JavaScript, React, Redux, Node JS, Express, MongoDB

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
