---
title: "Discussion on \"Destructuring in JavaScript.\" | Hashnode"
description: "Discussion on \"Destructuring in JavaScript.\". Suppose there is a object and there are two properties which you have to use many times in the program that you can create each variable for each property.\nconst obj = {\n name: \"rohit\",\n id : 123, \n}"
url: "https://hashnode.com/posts/destructuring-in-javascript/69baa471c22d3eeb8a8b354e"
---

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

Discussion

# [Destructuring in JavaScript.](https://javascript-insights-by-rohit.hashnode.dev/destructuring-in-javascript?utm_source=hashnode&utm_medium=feed)

Suppose there is a object and there are two properties which you have to use many times in the program that you can create each variable for each property. const obj = { name: "rohit", id : 123, }

Mar 18 · 3 min read · javascript-insights-by-rohit.hashnode.dev  
Updated Mar 26  
Read the article

-   [#chaicode-webdev-cohort-2026](https://hashnode.com/tag/chaicode-webdev-cohort-2026)
-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#destructuring](https://hashnode.com/tag/destructuring)

## Written by

[Rohit Ingale](https://hashnode.com/@rohit0667)

@rohit0667

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
