<?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: Prashant Patel</title>
    <description>The latest articles on DEV Community by Prashant Patel (@13prashant).</description>
    <link>https://dev.to/13prashant</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%2F645956%2Fc1227574-921c-4ace-aa6b-529b91d3945e.jpeg</url>
      <title>DEV Community: Prashant Patel</title>
      <link>https://dev.to/13prashant</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/13prashant"/>
    <language>en</language>
    <item>
      <title>Do you find difficulty choosing between =, == &amp; === ?</title>
      <dc:creator>Prashant Patel</dc:creator>
      <pubDate>Sat, 19 Jun 2021 11:02:56 +0000</pubDate>
      <link>https://dev.to/13prashant/do-you-find-difficulty-choosing-between-16gd</link>
      <guid>https://dev.to/13prashant/do-you-find-difficulty-choosing-between-16gd</guid>
      <description>&lt;h3&gt;
  
  
  Assigning Operator (=)
&lt;/h3&gt;

&lt;p&gt;It assigns the value to the variable.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const firstName = 'Prashant';
const favNumber = 13;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Loose Equality Operator (==)
&lt;/h3&gt;

&lt;p&gt;This operator compares two values &amp;amp; return true if they are equivalent or false if they are not.&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="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;equality&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&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;value&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;13&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Equal&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
     &lt;span class="p"&gt;}&lt;/span&gt;
     &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Not Equal&lt;/span&gt;&lt;span class="dl"&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;In addition, it also compares two different data types (numbers &amp;amp; strings). &lt;br&gt;&lt;br&gt;
It is called as Type Coercion.&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="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;1&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="cm"&gt;/* This will return true with the Loose Equality Operator. */&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Strict Equality Operator (===)
&lt;/h3&gt;

&lt;p&gt;Unlike the Equality Operator, it does not compare two different data types. &lt;br&gt;&lt;br&gt;
Otherwise, it works similarly to Loose Equality Operator.&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="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;1&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="cm"&gt;/* This will return false in case of the Strict Equality Operator. */&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  More Examples
&lt;/h3&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;favBook&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Sapiens&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="cm"&gt;/* Assigns the value to the variable */&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="mi"&gt;13&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;13&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="cm"&gt;/* It will perform a type conversion and it will return true. */&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="mi"&gt;13&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;13&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="cm"&gt;/* It will not perform type conversion. Hence, it will return false. */&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  A tip by &lt;div class="ltag__user ltag__user__id__"&gt;
    &lt;div class="ltag__user__pic"&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png" alt="[deleted user] image"&gt;
    &lt;/div&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;[Deleted User]&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/h3&gt;


&lt;p&gt;Ideally, you should always use &lt;code&gt;===&lt;/code&gt; and &lt;code&gt;!==&lt;/code&gt;, and never use &lt;code&gt;==&lt;/code&gt;, and &lt;code&gt;!=&lt;/code&gt;.&lt;br&gt;
Or to make it easy to use what can you do is configure your linter to always use &lt;code&gt;===&lt;/code&gt; and &lt;code&gt;!==&lt;/code&gt; in code editor.&lt;br&gt;
The loose equality has too many pitfalls that are covered by the strict one.&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  Hope you found it helpful. Please let me know.
&lt;/h5&gt;

&lt;h5&gt;
  
  
  Why not connect on &lt;a href="https://twitter.com/13Prashaant" rel="noopener noreferrer"&gt;Twitter?&lt;/a&gt;
&lt;/h5&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to become a 'Better Beginner'? A Guide by a Beginner!</title>
      <dc:creator>Prashant Patel</dc:creator>
      <pubDate>Tue, 08 Jun 2021 14:32:10 +0000</pubDate>
      <link>https://dev.to/13prashant/how-to-become-a-better-beginner-a-guide-by-a-beginner-e83</link>
      <guid>https://dev.to/13prashant/how-to-become-a-better-beginner-a-guide-by-a-beginner-e83</guid>
      <description>&lt;h3&gt;
  
  
  Think once &amp;amp; Start
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Starting is always NOW. &lt;br&gt;&lt;br&gt;
START where you are,&lt;br&gt;
USE what you have,&lt;br&gt;
DO what you can.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Do not wait for the right tool. If you are able to read this. You already have a tool to start with.&lt;/p&gt;

&lt;h3&gt;
  
  
  CONSISTENCY
&lt;/h3&gt;

&lt;p&gt;Once you start, choose Consistency over working hours once a weak. &lt;br&gt;&lt;br&gt;
&lt;strong&gt;1 Hour/Day &amp;gt; 7 Hours/Day once a week.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Do not underestimate the power of Consistency.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Success is the product of daily habits - not once-in-a-lifetime transformations.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  QUANTITY OVER QUALITY
&lt;/h3&gt;

&lt;p&gt;As a beginner, you may fall for the quality of your code. You may fall for the perfection of your code. This can be hard to achieve at this stage &amp;amp; even it can demotivate you.&lt;/p&gt;

&lt;h4&gt;
  
  
  Instead choose 'Quantity'.
&lt;/h4&gt;

&lt;p&gt;Try to complete as many projects as you can keeping the ugliness of your code aside. Eventually, this will lead you to Quality. Just make your projects work.&lt;/p&gt;

&lt;p&gt;There's not a single perfect app in this universe!!! If there would be then why the developers need to update it day-to-day?&lt;br&gt;
Just think of it! 🤔&lt;/p&gt;

&lt;h3&gt;
  
  
  HOW TO LEARN?
&lt;/h3&gt;

&lt;p&gt;You will get stuck at many levels as you continue your journey.&lt;br&gt;&lt;br&gt;
Get yourself an acquaintance that no one, not even a senior developers know everything. They just know better how to learn.&lt;/p&gt;

&lt;p&gt;So, I would say, LEARN TO 'LEARN'.&lt;/p&gt;

&lt;h3&gt;
  
  
  TUTORIAL HELL
&lt;/h3&gt;

&lt;p&gt;Learning from tutorials is one of the best ways today.&lt;br&gt;
But don't get stuck in tutorial hell by just keeping yourself building projects watching more &amp;amp; more tutorials.&lt;br&gt;
Come out of the tutorial hell asap.&lt;/p&gt;

&lt;p&gt;Building projects with the help of tutorials is absolutely fine. There's no question!&lt;br&gt;
But by finishing that project, don't jump to another tutorial to build another project.&lt;br&gt;
Instead, try to build a similar project using that tech stack or even adding some extra bits.&lt;br&gt;
 Now, you will face real problems &amp;amp; will actually learn the tech.&lt;/p&gt;

&lt;p&gt;In the tutorial, the tutor has already developed &amp;amp; tested a well-defined project. But he/she won't show you the real struggle they have gone through so they can save you a ton of time.&lt;br&gt;
Remember the actual time the tutor has gone through is much greater than what you are seeing.&lt;/p&gt;

&lt;h3&gt;
  
  
  IMPOSTER SYNDROME
&lt;/h3&gt;

&lt;p&gt;You are not alone. Almost most of the developers in the world would have faced Imposter Syndrome.&lt;/p&gt;

&lt;p&gt;While you face this difficulty, &lt;strong&gt;remember&lt;/strong&gt; you are comparing your 2 or 3 months with the one who has spent years of practice. So there's no point to it.&lt;/p&gt;

&lt;h3&gt;
  
  
  READ BOOKS
&lt;/h3&gt;

&lt;p&gt;Well, I'm not talking about tech books here- but the books that will boost your learning.&lt;/p&gt;

&lt;p&gt;Learning to code is tough. One day you may succeed to learn. Another day you may fail. One day you may think about giving up.&lt;/p&gt;

&lt;p&gt;I would say - &lt;strong&gt;Please give up&lt;/strong&gt; but for few days. I mean take a break, spend your time with loved ones.&lt;/p&gt;

&lt;p&gt;Books can be your best friends to keep you struggling with your learning but not quitting. Keep reading books parallelly with your learning. And eventually, one day will come, you will pat your shoulders for not giving up in the past.&lt;/p&gt;

&lt;p&gt;Here, I would recommend few books: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;'Atomic Habits' by James Clear&lt;/li&gt;
&lt;li&gt;'Zero to One' by Peter Thiel&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  DOCUMENT YOUR JOURNEY
&lt;/h3&gt;

&lt;p&gt;As you start learning documenting your journey will be a big plus. Use any social media platform - Twitter, Instagram, Hashnode, or any.&lt;br&gt;
Twitter would be best in my opinion where you can connect with many other developers (beginner to expert) learning different tech stacks. You will get help from them. Here, I would say 'Tech Twitter' is the best thing I came across Twitter.&lt;/p&gt;

&lt;p&gt;You can also take a challenge by committing in public to code for the next 100 days.&lt;br&gt;
There's a unique and fun way to doing it. 💯 Visit &lt;a href="https://www.100daysofcode.com/"&gt;https://www.100daysofcode.com/&lt;/a&gt; and read more about it there.&lt;/p&gt;

&lt;h3&gt;
  
  
  TEACH WHILE LEARNING
&lt;/h3&gt;

&lt;p&gt;You may think it's a dumbest suggestion- how one can teach while learning? 🤔&lt;/p&gt;

&lt;p&gt;You may say &lt;em&gt;ok, fine, I'm ready to teach but who the hell will learn from me?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Believe me, you don't need to go anywhere to find students.&lt;br&gt;&lt;br&gt;
Remember again about documenting your journey as a developer.&lt;br&gt;&lt;br&gt;
Yes, that is it. Make small notes, tips about what you learned by means of text, visuals or anything you can do. Not only it will refresh your learning, but it will also force you to understand the topic thoroughly. And of course many will benefit from this.&lt;/p&gt;

&lt;h3&gt;
  
  
  LAST BUT NOT LEAST
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Keep struggling,&lt;br&gt;
Just don't quit!&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>beginners</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
