---
title: "Comment by Shaik Mohammad Abdullah on \"JavaScript object destructuring tips\" | Hashnode"
description: "Hey Chris Bongers , I did not understand the dynamic name destructuring."
url: "https://hashnode.com/posts/javascript-object-destructuring-tips/62dce41b0da9857574b22bee/comment/62e8cf053f084d032011c511"
---

[Discussion](https://hashnode.com/posts/javascript-object-destructuring-tips/62dce41b0da9857574b22bee)

Comment [JavaScript object destructuring tips](https://hashnode.com/posts/javascript-object-destructuring-tips/62dce41b0da9857574b22bee)

[Shaik Mohammad Abdullah](https://hashnode.com/@ShaikMoAbdullah)

[Aug 2, 2022](https://hashnode.com/posts/javascript-object-destructuring-tips/62dce41b0da9857574b22bee/comment/62e8cf053f084d032011c511)

Hey [Chris Bongers](https://hashnode.com/@dailydevtips), I did not understand the dynamic name destructuring.

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Aug 2, 2022](https://hashnode.com/posts/javascript-object-destructuring-tips/62dce41b0da9857574b22bee/comment/62e8cf053f084d032011c511#reply-62e8e0173f084d032011c8ad)

It basically is a way to use variables as the key selector.

In the example we might get getProperty from a function (like a select list)

So we can't do { name } as we don't know if it's name or age for instance. This way you can use a dynamic name (variable) to be the destructure selector.

Hope that makes a some sense?

[Shaik Mohammad Abdullah](https://hashnode.com/@ShaikMoAbdullah)

[Aug 2, 2022](https://hashnode.com/posts/javascript-object-destructuring-tips/62dce41b0da9857574b22bee/comment/62e8cf053f084d032011c511#reply-62e965b092b7fd0a78c33e02)

Okay [Chris Bongers](https://hashnode.com/@dailydevtips). It's similar to Destructuring with a different name. We are storing the name with a different variable and using that variable to get another variable which will be used to get the value "Chris".

It took longer to understand. But, I hope my explanation makes sense :)
