<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Maditusi</title>
    <description>The latest articles on DEV Community by Maditusi (@maditusi).</description>
    <link>https://dev.to/maditusi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F426212%2F7b945fb0-1d43-462b-9a66-d40828dec52b.png</url>
      <title>DEV Community: Maditusi</title>
      <link>https://dev.to/maditusi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maditusi"/>
    <language>en</language>
    <item>
      <title>It took me 3 years to understand Destructuring in JS</title>
      <dc:creator>Maditusi</dc:creator>
      <pubDate>Tue, 25 Oct 2022 10:35:50 +0000</pubDate>
      <link>https://dev.to/maditusi/it-took-me-3-years-to-understand-destructuring-in-js-89</link>
      <guid>https://dev.to/maditusi/it-took-me-3-years-to-understand-destructuring-in-js-89</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;my name is Madina and I'm trying to transition into junior developer role. &lt;br&gt;
I started my journey long time ago. I paused, took breaks, questioned my life choices and current state is that I'm doing an online bootcamp (65% done) ✅ &lt;/p&gt;

&lt;p&gt;I did all the courses on JS, which you can only imagine, any format: YouTube tutorials, blogs, courses paid &amp;amp; free...&lt;/p&gt;

&lt;p&gt;It took me 3 years to grasp on the concept of Destructuring in JS. I just couldn’t get it. Now I can tell that I finally understood it)&lt;/p&gt;

&lt;p&gt;Given an object&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let person = {
  "userId": 1,
  "id": 1,
  "title": "delectus aut autem",
  "completed": false
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I don’t  want the whole object, just some parts of it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const { userId, title } = person;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So, Destructuring is a way of cutting pieces of a cake 🎂  🍰&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let cake = { 🎂 }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Results in&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let { 🍰 } = 🎂
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I hope it could help someone out there! &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>destructuring</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
