---
title: "Discussion on \"Object.freeze() vs Object.seal() vs Object.defineProperty()\" | Hashnode"
description: "Discussion on \"Object.freeze() vs Object.seal() vs Object.defineProperty()\". This article covers how you can modify and restrict the JavaScript objects."
url: "https://hashnode.com/posts/restrict-js-objects/6400e04138db9c9ccdb91afd"
---

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

Discussion

# [Object.freeze() vs Object.seal() vs Object.defineProperty()](https://anurag-dhamala.hashnode.dev/restrict-js-objects?utm_source=hashnode&utm_medium=feed)

This article covers how you can modify and restrict the JavaScript objects.

Mar 2, 2023 · 4 min read · anurag-dhamala.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#javascript-framework](https://hashnode.com/tag/javascript-framework)
-   [#javascript-library](https://hashnode.com/tag/javascript-library)
-   [#javascript-modules](https://hashnode.com/tag/javascript-modules)

## Written by

[Anurag Dhamala](https://hashnode.com/@anurag814)

@anurag814

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

Working as a software engineer. Loves to work with anything related to JS and TS.

Anurag is a full-time software engineer who loves to learn about this and that. Anything related to tech, piques his interest.

## Responses 1

Markdown supported · ⌘↵ to post

[Anurag Kumar](https://hashnode.com/@AnuragK24)

[Mar 3, 2023](https://hashnode.com/posts/restrict-js-objects/6400e04138db9c9ccdb91afd/comment/6401875c52d0c16bb2222699)

Great explanation!

[Anurag Dhamala](https://hashnode.com/@anurag814)

[Mar 3, 2023](https://hashnode.com/posts/restrict-js-objects/6400e04138db9c9ccdb91afd/comment/6401875c52d0c16bb2222699#reply-64019c7f4afe53670a9e49da)

Glad that you liked it! It feels so great to receive a feedback.
