<?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: ayan</title>
    <description>The latest articles on DEV Community by ayan (@anuppal48672810).</description>
    <link>https://dev.to/anuppal48672810</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%2F659524%2F5860e184-58c8-447f-b4f6-736df5b52d73.png</url>
      <title>DEV Community: ayan</title>
      <link>https://dev.to/anuppal48672810</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anuppal48672810"/>
    <language>en</language>
    <item>
      <title>How JavaScript works? Execution Context...</title>
      <dc:creator>ayan</dc:creator>
      <pubDate>Fri, 07 Oct 2022 06:19:15 +0000</pubDate>
      <link>https://dev.to/anuppal48672810/how-javascript-works-execution-context-442b</link>
      <guid>https://dev.to/anuppal48672810/how-javascript-works-execution-context-442b</guid>
      <description>&lt;p&gt;__&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;_Everything in JavaScript happens inside an execution context&lt;br&gt;
_&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We can assume execution context is a big box in which whole JavaScript code is executed.&lt;br&gt;
Execution context contains two components first one called Memory Component and second one is called code (&lt;br&gt;
In first component all the variables and functions are placed in key value pairs. Function are also stored in memory component.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rhmorqmU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2es3v6nk4we4o6aadpv0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rhmorqmU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2es3v6nk4we4o6aadpv0.png" alt="Image description" width="703" height="618"&gt;&lt;/a&gt;&lt;br&gt;
Second component is called code component also known as thread of execution.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--w9Uga01m--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/udyatsi4ozwesflqiq9q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--w9Uga01m--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/udyatsi4ozwesflqiq9q.png" alt="Image description" width="877" height="622"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;for more details refer Namaste JavaScript&lt;/em&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>frontend</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to destructure arrays in Js?🤔</title>
      <dc:creator>ayan</dc:creator>
      <pubDate>Thu, 11 Nov 2021 03:41:05 +0000</pubDate>
      <link>https://dev.to/anuppal48672810/how-to-destructure-arrays-in-js-410e</link>
      <guid>https://dev.to/anuppal48672810/how-to-destructure-arrays-in-js-410e</guid>
      <description>&lt;p&gt;Hi today I am going to show you how to destructure an array in JavaScript.&lt;br&gt;
Let's take an object.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fumcq91dobhrv4kem6q7p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fumcq91dobhrv4kem6q7p.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is how we retrieve the values of arrays normally in a very simple way.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw2bfu665jqow39ecanzq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw2bfu665jqow39ecanzq.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
But can do the same in a line using array destructuring.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu9q9b1pcik44oy3cdw0c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu9q9b1pcik44oy3cdw0c.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
Now taking we can use the values of restaurant using array destructuring.&lt;br&gt;
Suppose we want to take categories . We can do it like this.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feq3k77xhwg26xx4oecoi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feq3k77xhwg26xx4oecoi.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
Suppose we don't want all the values in category&lt;br&gt;
then &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyyjzz1hl6n9yu5v81cer.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyyjzz1hl6n9yu5v81cer.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
