<?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>Forem: Sourabh Mahato</title>
    <description>The latest articles on Forem by Sourabh Mahato (@sourabhmahato).</description>
    <link>https://forem.com/sourabhmahato</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%2F523204%2Fd147f4bc-6ac6-49d1-9582-4a42757c7977.jpeg</url>
      <title>Forem: Sourabh Mahato</title>
      <link>https://forem.com/sourabhmahato</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sourabhmahato"/>
    <language>en</language>
    <item>
      <title>How javascript works?</title>
      <dc:creator>Sourabh Mahato</dc:creator>
      <pubDate>Thu, 03 Dec 2020 18:08:28 +0000</pubDate>
      <link>https://forem.com/sourabhmahato/how-javascript-works-3a07</link>
      <guid>https://forem.com/sourabhmahato/how-javascript-works-3a07</guid>
      <description>&lt;h4&gt;
  
  
  The Core Fact: "Everything in javascript happens inside an Execution Context"
&lt;/h4&gt;

&lt;p&gt;Now, what's execution context? &lt;br&gt;
You can assume it be a container where your whole code is executed. &lt;br&gt;
Execution context has two components in it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Memory Component (Variable Environment)&lt;/li&gt;
&lt;li&gt;Code Component (Thread of Execution)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now let's understand the role of each component in the execution context.&lt;/p&gt;

&lt;p&gt;The first component, the memory component which is also known as the variable environment is responsible for &lt;em&gt;storing all the variables and functions as&lt;/em&gt; &lt;strong&gt;key value pair&lt;/strong&gt;. Long story short, it's sort of an environment which is used to store all the variables and functions as &lt;strong&gt;key : value pair&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The second component, the code component which is also known as the thread of execution is responsible for executing the code &lt;strong&gt;one line at once&lt;/strong&gt;. It's called the thread of execution because it's like a thread in which the whole code is executed one line at a time.&lt;/p&gt;

&lt;h4&gt;
  
  
  Another core fact: "Javascript is a synchronous single-threaded language"
&lt;/h4&gt;

&lt;p&gt;Let's understand why it's called single threaded because javascript can execute one command at a time. It's called synchronous single-threaded because javascript can execute one command at a time in a &lt;strong&gt;specific order&lt;/strong&gt;. It means it can go to the next line only when the current line is being finished executing.&lt;/p&gt;

&lt;h5&gt;
  
  
  Conclusion: Javascript isn't possible without this execution context. It is a synchronous single threaded language.
&lt;/h5&gt;

</description>
      <category>javascript</category>
      <category>codenewbie</category>
      <category>webdev</category>
      <category>react</category>
    </item>
    <item>
      <title>Use github desktop 101</title>
      <dc:creator>Sourabh Mahato</dc:creator>
      <pubDate>Mon, 30 Nov 2020 15:36:53 +0000</pubDate>
      <link>https://forem.com/sourabhmahato/use-github-desktop-101-3kom</link>
      <guid>https://forem.com/sourabhmahato/use-github-desktop-101-3kom</guid>
      <description>&lt;p&gt;Step 1. Go to github.com and create an account. &lt;br&gt;
Step 2. Download git and github desktop for your pc.&lt;/p&gt;

&lt;h3&gt;
  
  
  Let's create our first repo now
&lt;/h3&gt;

&lt;p&gt;Click on create repository. This will create a repository for you.&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%2Fi%2F3nqd4evvnaipchxolyag.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%2Fi%2F3nqd4evvnaipchxolyag.png" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, give a name for your repository and give description about it. Click on the, readme checkbox to add Readme.md file to your repository which will let other users get an idea about your repository. Finally click on create. This will create your repository locally on your machine.&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%2Fi%2Fij58vqjmuv3xemvg9krh.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%2Fi%2Fij58vqjmuv3xemvg9krh.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
Now click on open in visual studio code to open your repository and start coding.&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%2Fi%2F3xoqufpgy0ug0ogi8o5u.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%2Fi%2F3xoqufpgy0ug0ogi8o5u.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
As soon as you start coding it git starts tracking your changing that's where version control comes to save our life.&lt;br&gt;
come back to github desktop and you can see your changes done.&lt;br&gt;
Now, commit your changes by clicking commit to main.&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%2Fi%2Foimo8gx0a9pi4uq2ycpd.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%2Fi%2Foimo8gx0a9pi4uq2ycpd.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
Once done with commit now you're ready to publish your repository to github.&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%2Fi%2Fe8uo2079issi32fhtp0e.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%2Fi%2Fe8uo2079issi32fhtp0e.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
Remember to uncheck the private, to keep your repository public so other users can see and go through your code.&lt;br&gt;
Now go to github.com and you can see your repository there.&lt;/p&gt;

&lt;h5&gt;
  
  
  Congrats we are done now. 😍
&lt;/h5&gt;

</description>
      <category>webdev</category>
      <category>github</category>
      <category>git</category>
    </item>
  </channel>
</rss>
