---
title: "Discussion on \"Destructuring in JavaScript\n\" | Hashnode"
description: "Discussion on \"Destructuring in JavaScript\n\". In JavaScript, we often work with arrays and objects.\nNormally, to get values from them, we write repetitive code like this:\nconst user = { name: \"Ritu\", age: 30 };\nconst name = user.name; const age ="
url: "https://hashnode.com/posts/destructuring-in-javascript/69c4993610e664c5da267cc5"
---

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

Discussion

# [Destructuring in JavaScript](https://js-basics-series.hashnode.dev/destructuring-in-javascript?utm_source=hashnode&utm_medium=feed)

In JavaScript, we often work with arrays and objects. Normally, to get values from them, we write repetitive code like this: const user = { name: "Ritu", age: 30 }; const name = user.name; const age =

Mar 26 · 5 min read · js-basics-series.hashnode.dev  
Read the article

-   [#destructuring-in-javascript](https://hashnode.com/tag/destructuring-in-javascript)
-   [#array-destructuring](https://hashnode.com/tag/array-destructuring)
-   [#object-destructuring-in-javascript](https://hashnode.com/tag/object-destructuring-in-javascript)
-   [#why-destructuring-is-important-in-javascript](https://hashnode.com/tag/why-destructuring-is-important-in-javascript)
-   [#hiteshchoudharylco](https://hashnode.com/tag/hiteshchoudharylco)
-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)

## Written by

[Ritu Sood](https://hashnode.com/@ritusood)

@ritusood

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
