---
title: "Discussion on \"Destructuring in JavaScript\" | Hashnode"
description: "Discussion on \"Destructuring in JavaScript\". You’ve definitely written code like this:\nconst user = {\n  name: \"Tejas\",\n  age: 20,\n  role: \"SDE\"\n};\n\nconsole.log(user.name);\nconsole.log(user.age);\nconsole.log(user.role);\n\nAt this point you're not"
url: "https://hashnode.com/posts/destructuring-in-javascript/69ef7823330a1ad7f7f05bde"
---

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

Discussion

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

You’ve definitely written code like this: const user = { name: "Tejas", age: 20, role: "SDE" }; console.log(user.name); console.log(user.age); console.log(user.role); At this point you're not

Apr 27 · 3 min read · tejasxdev.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#destructuring](https://hashnode.com/tag/destructuring)
-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaicohort](https://hashnode.com/tag/chaicohort)

## Written by

[Tejas Prajapati](https://hashnode.com/@tejasxdev)

@tejasxdev · Anand, Gujarat, India

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

Problem Solver | MERN Stack

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
