---
title: "Discussion on \"Destructring In Javascript\" | Hashnode"
description: "Discussion on \"Destructring In Javascript\". Destructuring assignment is used to unpack value from an array, or properties from the object, into distinct variables\nLet [x,y] = [7,20]\nx will be assigned 7 and y, 20\n[10,x, ...rest] =\n[10, 80, 7, 11, 21, 88] x will be 80 rest will be [7,11,21,88]\n..."
url: "https://hashnode.com/posts/destructring-in-javascript/64aaf5dbf244557c9095a786"
---

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

Discussion

# [Destructring In Javascript](https://sksage.hashnode.dev/destructring-in-javascript?utm_source=hashnode&utm_medium=feed)

Destructuring assignment is used to unpack value from an array, or properties from the object, into distinct variables Let \[x,y\] = \[7,20\] x will be assigned 7 and y, 20 \[10,x, ...rest\] = \[10, 80, 7, 11, 21, 88\] x will be 80 rest will be \[7,11,21,88\] ...

Jul 9, 2023 · 1 min read · sksage.hashnode.dev  
Updated Oct 13, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#destructuring](https://hashnode.com/tag/destructuring)
-   [#array](https://hashnode.com/tag/array)
-   [#python](https://hashnode.com/tag/python)
-   [#python-arrays](https://hashnode.com/tag/python-arrays)

## Written by

[Siddharth Kanojiya](https://hashnode.com/@sksage)

@sksage · Jabalpur ,Madhya Pradesh (Bhar

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

“When I wrote this code, only God and I understood what I did. Now only God knows.” https://www.buymeacoffee.com/junoriver88

I am very passionate Coder https://www.buymeacoffee.com/junoriver88

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
