---
title: "Discussion on \"Destructuring in JavaScript. What is it? How does it work? Why should you use it?\" | Hashnode"
description: "Discussion on \"Destructuring in JavaScript. What is it? How does it work? Why should you use it?\". What is destructuring?\nDestructuring in JavaScript is a powerful feature that lets you extract values from data structures like arrays and objects. It can be used to make your code more readable and concise.\nIn this blog post, we'll take a look at wh..."
url: "https://hashnode.com/posts/destructuring-in-javascript-what-is-it-how-does-it-work-why-should-you-use-it/626f794c238a6ff3d7dc792b"
---

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

Discussion

# [Destructuring in JavaScript. What is it? How does it work? Why should you use it?](https://blog.thecode.xyz/destructuring-in-javascript-what-is-it-how-does-it-work-why-should-you-use-it?utm_source=hashnode&utm_medium=feed)

What is destructuring? Destructuring in JavaScript is a powerful feature that lets you extract values from data structures like arrays and objects. It can be used to make your code more readable and concise. In this blog post, we'll take a look at wh...

May 2, 2022 · 5 min read · blog.thecode.xyz  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)

## Written by

[Tomek Skupiński](https://hashnode.com/@focusinsky)

@focusinsky

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

Software Engineer, 1/3 of thecode.xyz

I’m Tomek, software engineer, working mostly with Ruby on Rails. I work remotely at Mixlr where every day we deliver live audio to millions of listeners. After hours, I write, read, and help my wife run theCode.xyz

## Responses 3

Markdown supported · ⌘↵ to post

[Developer Avocado](https://hashnode.com/@AvocaDEV)

[May 24, 2022](https://hashnode.com/posts/destructuring-in-javascript-what-is-it-how-does-it-work-why-should-you-use-it/626f794c238a6ff3d7dc792b/comment/628cef7ebc26026fa45c41e3)

hey [Tomek Skupiński](https://hashnode.com/@focusinsky) great article!

[Couponsva Com](https://hashnode.com/@Couponsva)

[May 6, 2022](https://hashnode.com/posts/destructuring-in-javascript-what-is-it-how-does-it-work-why-should-you-use-it/626f794c238a6ff3d7dc792b/comment/6274ed6650c6035691e2a331)

Thanks for the details about JavaScript. I have learned a lot. You may like [GTRacing](https://couponsva.com/store/gtracing).

[Mads B. Cordes](https://hashnode.com/@madco)

[May 3, 2022](https://hashnode.com/posts/destructuring-in-javascript-what-is-it-how-does-it-work-why-should-you-use-it/626f794c238a6ff3d7dc792b/comment/6270bfd69ed78401a6408d8c)

I do love to use destructuring for most everything in my JS code-bases 🤓 But your article actually got me curious which one is actually faster 🤔

So I made a quick [benchmark](https://hasty.dev/YioqobdhtsKQjX6jyLBLn5) seems like they're pretty much on par, so I'll always go with the destructuring then 😍 - Hopefully the V8-team will increase the performance of this in the future though!

[Tomek Skupiński](https://hashnode.com/@focusinsky)

[May 3, 2022](https://hashnode.com/posts/destructuring-in-javascript-what-is-it-how-does-it-work-why-should-you-use-it/626f794c238a6ff3d7dc792b/comment/6270bfd69ed78401a6408d8c#reply-6270d5f9339f010181020a14)

Hey Mads, that's a great insight. And the cool tool for making benchmarks. I used to play a lot with benchmarks in the Ruby ecosystem (that's the language I have worked with most), need to give it a spin in JS.
