<?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: Prateek Arora</title>
    <description>The latest articles on DEV Community by Prateek Arora (@prateekarora).</description>
    <link>https://dev.to/prateekarora</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%2F192548%2Fa441d081-341f-4d37-aa0c-d4d0db552a9f.jpg</url>
      <title>DEV Community: Prateek Arora</title>
      <link>https://dev.to/prateekarora</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/prateekarora"/>
    <language>en</language>
    <item>
      <title>How we can use the export module in JavaScript?</title>
      <dc:creator>Prateek Arora</dc:creator>
      <pubDate>Thu, 22 Sep 2022 15:45:26 +0000</pubDate>
      <link>https://dev.to/prateekarora/how-we-can-use-the-export-module-in-javascript-o2e</link>
      <guid>https://dev.to/prateekarora/how-we-can-use-the-export-module-in-javascript-o2e</guid>
      <description>&lt;p&gt;This is infographic of how to export module in JavaScipt.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--p26Ml2TF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7vmkkia5x6y0l2eg2xmb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--p26Ml2TF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7vmkkia5x6y0l2eg2xmb.png" alt="Image description" width="800" height="2000"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>You may not need the if-else statement😎</title>
      <dc:creator>Prateek Arora</dc:creator>
      <pubDate>Mon, 09 Sep 2019 12:56:44 +0000</pubDate>
      <link>https://dev.to/prateekarora/you-may-not-need-the-if-else-statement-44l6</link>
      <guid>https://dev.to/prateekarora/you-may-not-need-the-if-else-statement-44l6</guid>
      <description>&lt;p&gt;This post was originally written on my blog  &lt;a href="https://prateekcodes.com/you-may-not-need-the-if-else-statement" rel="noopener noreferrer"&gt;PrateekCodes&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;So, today I am going to show you a little &lt;code&gt;simple tip&lt;/code&gt; of writing an &lt;em&gt;if statement&lt;/em&gt; without using &lt;em&gt;if statement&lt;/em&gt; in a shorter way. It's a short, simple and coolest version of &lt;code&gt;IF statement&lt;/code&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This can help you clean up your code a little bit, making it easier to read.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Let's see how &lt;em&gt;if statement&lt;/em&gt; works:
&lt;/h3&gt;

&lt;p&gt;An &lt;code&gt;if statement&lt;/code&gt; evaluates the test expression inside the parenthesis &lt;code&gt;()&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  If the test expression is &lt;code&gt;true&lt;/code&gt;, statements inside the body of  &lt;code&gt;if&lt;/code&gt;  are executed.&lt;/li&gt;
&lt;li&gt;  If the test expression is &lt;code&gt;false&lt;/code&gt;, statements inside the body of  &lt;code&gt;if&lt;/code&gt;  are not executed.&lt;/li&gt;
&lt;/ul&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%2Fmiro.medium.com%2Fmax%2F196%2F0%2AJVesuaO-AYXt-yIs.jpg" 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%2Fmiro.medium.com%2Fmax%2F196%2F0%2AJVesuaO-AYXt-yIs.jpg" alt="Flow chart of if statement"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's see the code how we write &lt;code&gt;if statement&lt;/code&gt; while writing code ??&lt;/p&gt;

&lt;p&gt;Let's see how the &lt;em&gt;if statement&lt;/em&gt; code looks like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;condition&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
        &lt;span class="c1"&gt;//block of code to be executed if the condition is true&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Now let's look at the &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt; operator
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt; operator is also known as the &lt;code&gt;logical AND operator&lt;/code&gt;. It evaluates operands from left to the right and returns the first falsy value.&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%2Fmiro.medium.com%2Fmax%2F370%2F0%2AksAjEm08vn7dOEpn.jpg" 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%2Fmiro.medium.com%2Fmax%2F370%2F0%2AksAjEm08vn7dOEpn.jpg" alt="flow chart of &amp;amp;&amp;amp; operator"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;For each operand or case, &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt; operator converts the value into boolean. If the output is &lt;code&gt;false&lt;/code&gt;, it stops the execution and returns the last operand value.&lt;/li&gt;
&lt;li&gt;  If all operands or cases are &lt;code&gt;true&lt;/code&gt;, it returns the last operand.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;//If the first operand is true,&lt;/span&gt;
&lt;span class="c1"&gt;//return the second operand&lt;/span&gt;

&lt;span class="nf"&gt;alert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 3&lt;/span&gt;

&lt;span class="c1"&gt;//if the first operand is falsy,&lt;/span&gt;
&lt;span class="c1"&gt;//return first false value,&lt;/span&gt;
&lt;span class="c1"&gt;//and ignore left operands&lt;/span&gt;

&lt;span class="nf"&gt;alert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// null&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  So now let's see the shortest way of writing an if statement
&lt;/h3&gt;

&lt;p&gt;Basically, to create your own if statement using &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt; operator, you have to follow this structure &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%2Fmiro.medium.com%2Fmax%2F370%2F0%2AWe3oU4GmAdv_wq2i.jpg" 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%2Fmiro.medium.com%2Fmax%2F370%2F0%2AWe3oU4GmAdv_wq2i.jpg" alt="use &amp;amp;&amp;amp; operator as if statement"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;(condition) &amp;amp;&amp;amp; (some instructions) &lt;/li&gt;
&lt;li&gt;for example:  someVar &amp;gt; someOtherVar &amp;amp;&amp;amp; console.log('yeah') This will log 'yeah' if someVar is bigger than someOtherVar.
#### Using &lt;em&gt;If statement&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;21&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; is greater than &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&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%2Fmiro.medium.com%2Fmax%2F404%2F0%2AV2qPjlADSEcjwH9i.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%2Fmiro.medium.com%2Fmax%2F404%2F0%2AV2qPjlADSEcjwH9i.png" alt="create if using if statement output"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Using &lt;em&gt;&amp;amp;&amp;amp; opreator&lt;/em&gt;
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;21&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; is greater than &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&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%2Fmiro.medium.com%2Fmax%2F483%2F0%2AJXOTaOVhAZtNW4o-.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%2Fmiro.medium.com%2Fmax%2F483%2F0%2AJXOTaOVhAZtNW4o-.png" alt="create if using &amp;amp;&amp;amp; opreator output"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this example, we created two if statements. One with the traditional method and the other with the &amp;amp;&amp;amp; operator, to check if &lt;code&gt;(a&amp;gt;b)&lt;/code&gt; is truthy. As we can see, both cases are logged the same console.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can also create your own if-else using &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt; and &lt;code&gt;||&lt;/code&gt; operator&lt;/p&gt;
&lt;/blockquote&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%2Fmiro.medium.com%2Fmax%2F361%2F0%2AwjesaefcMakUp4bK.jpg" 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%2Fmiro.medium.com%2Fmax%2F361%2F0%2AwjesaefcMakUp4bK.jpg" alt="flow chart of IF ELSE using &amp;amp;&amp;amp; and || operator"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First, write an if condition like &lt;code&gt;(true or false)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If the condition is truthy, the operator executes the truth body, and the || (or operator) stops the execution as it found a truthy value. &lt;strong&gt;|| returns the first truthy false&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Else executes when the condition is falsy when using the || operator. The || operator moves to the next operands to find the first truthy value.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Example
&lt;/h4&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%2Fmiro.medium.com%2Fmax%2F396%2F0%2A93FbGjJZAkvpErEs.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%2Fmiro.medium.com%2Fmax%2F396%2F0%2A93FbGjJZAkvpErEs.png" alt="create if else using &amp;amp;&amp;amp; || opreator"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  execute by own and create your own if-else statement 😂
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;execute when condition true&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;||&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="o"&gt;||&lt;/span&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;execute when condition false&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;Thank you so much for reading my article on &lt;strong&gt;You may not need if-else statement!&lt;/strong&gt; Be sure to follow me on &lt;a href="https://twitter.com/prateek_codes" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt; for lots of tweets about tech. Feel free to comment below or tweet me with any questions you may have.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Things to know before learning your first programming language</title>
      <dc:creator>Prateek Arora</dc:creator>
      <pubDate>Sun, 04 Aug 2019 17:30:11 +0000</pubDate>
      <link>https://dev.to/prateekarora/things-to-know-before-starting-your-first-programming-language-4h61</link>
      <guid>https://dev.to/prateekarora/things-to-know-before-starting-your-first-programming-language-4h61</guid>
      <description>&lt;h2&gt;
  
  
  What is a Programming Language and why do we need one??
&lt;/h2&gt;

&lt;p&gt;Programming languages are what we use to tell computers what to do.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--99exy6JR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/496/0%2AxWveD227uuLHCZCZ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--99exy6JR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/496/0%2AxWveD227uuLHCZCZ.png" alt="Different Languages For Human And System"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Programming languages are a means through which we convey our messages to the electrical systems. It can be a computer, an electronic washing machine, your mobile phones or any electrical device you use.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;In Simple Words, Programming Language acts as a bridge Between User and System to communicate.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Do You Know Binary Code of 2 is 10? These represent two states: on (1)and off (0). You Can Convert Your Text From &lt;a href="https://codebeautify.org/text-to-binary"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Computers talk to one another in binary, which looks like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;0011101010101111000111&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Imagine Whats Happen if no Programming Language in the market&lt;br&gt;&lt;br&gt;
We have to tell a computer to create a red box on the screen for a website.&lt;/p&gt;

&lt;p&gt;In English, we say:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create a box.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sure, ones with straight edges, curved edges?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Make it red.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Wait to make the edges red or the whole thing red?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Make it fill the screen.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What about the screen?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Screen, the thing I’m looking at.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What are you looking at?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ohh, forget it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;See the problem now?&lt;/p&gt;

&lt;p&gt;The system is not designed to understand Human Language. To Resolve that, We need a Language that communicates with System. So whats does Programming Language do. A programming language allows us to give instructions to a computer in a language the computer understands.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tnP3mszX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/700/0%2AwCSm1ixAiZThnV37" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tnP3mszX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/700/0%2AwCSm1ixAiZThnV37" alt="Syntax (Set Of Rules)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Program is a Set Of instruction that tell the computer what tasks to perform.  The rules for writing a format of code and combinations of the set of instructions is called Syntax.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The syntax is similar to Spelling, tense, and punctuation in English to write a sentence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Types Of Programming Languages
&lt;/h2&gt;

&lt;p&gt;There are 2 Type of Programming Languages:-&lt;/p&gt;

&lt;h2&gt;
  
  
  1. High-Level Language
&lt;/h2&gt;

&lt;h2&gt;
  
  
  2. Low-Level Language
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vOT4AhhN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/602/1%2ASM50SlPOx2byQEuD7C5SMA.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vOT4AhhN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/602/1%2ASM50SlPOx2byQEuD7C5SMA.jpeg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;High-level programming languages&lt;/em&gt;&lt;/strong&gt; are easily understandable by a human. It was created by developers so that programmers don’t face any difficulty to communicate with a System. Example:- JS, Python🐍 , and so more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Low-level languages&lt;/em&gt;&lt;/strong&gt; are designed to deal with the hardware of a computer directly. Low-level languages are closer to the system 💻.&lt;/p&gt;

&lt;p&gt;The computer needs a way to understand our program into Binary Code That’s System Understand. To do this, we’ll need a translator.&lt;/p&gt;

&lt;h2&gt;
  
  
  Translator
&lt;/h2&gt;

&lt;p&gt;A translator is a program that converts your code to the machine language.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HXj3pDFg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/700/0%2AZ3NevxhNIHwBlXEG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HXj3pDFg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/700/0%2AZ3NevxhNIHwBlXEG" alt="How Does Translator work?"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Different type of translators
&lt;/h3&gt;

&lt;p&gt;The different kinds of translators are as follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Compilers&lt;/em&gt;&lt;/strong&gt;:- It translates the entire program and translates code into Binary code. It generates the error message only after scanning the whole program. Due to this, debugging is comparatively hard, and it takes more time to translate the code. Programming language like C, C++ use compilers.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Interpreter&lt;/em&gt;&lt;/strong&gt;:- It translates code line-By-line. It continuously translates the code until the first error is met. Due to Translate code, line-by-line debugging is easy. It takes less time to convert the code. Programming language like Js, Python, Ruby use interpreters.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Different Way of Writing the Hello World In Programming Language
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Java
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Hello&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;  
    &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="o"&gt;[]&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;  
        &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Hello World"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;  
    &lt;span class="o"&gt;}&lt;/span&gt;  
 &lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Python
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;print&lt;/span&gt; &lt;span class="s"&gt;"hello world"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;JavaScript
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;Console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;hello world&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;C++
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="cp"&gt;#include &amp;lt;iostream&amp;gt; main()  
&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;  
&lt;span class="n"&gt;std&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;cout&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="s"&gt;"Hello, World."&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Bash
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/sh  &lt;/span&gt;
 &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Hello World"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;PHP
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt; &lt;span class="k"&gt;echo&lt;/span&gt; &lt;span class="err"&gt;“&lt;/span&gt;&lt;span class="nx"&gt;Hello&lt;/span&gt; &lt;span class="nx"&gt;World&lt;/span&gt;&lt;span class="err"&gt;”&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="cp"&gt;?&amp;gt;&lt;/span&gt;;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;






&lt;p&gt;Thank you so much for reading my article on &lt;strong&gt;Things to know before starting your first programming language!.&lt;/strong&gt; Be sure to follow me on &lt;a href="https://twitter.com/prateek_codes"&gt;Twitter&lt;/a&gt; for lots of tweets about tech. Feel free to comment below or tweet me with any questions you may have.&lt;/p&gt;

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