<?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: Limbareddy</title>
    <description>The latest articles on DEV Community by Limbareddy (@limbareddy).</description>
    <link>https://dev.to/limbareddy</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%2F1002118%2Fd747ecaa-6c89-4ee5-b486-e252778fdb6c.png</url>
      <title>DEV Community: Limbareddy</title>
      <link>https://dev.to/limbareddy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/limbareddy"/>
    <language>en</language>
    <item>
      <title>Scope and usage of let , var &amp; const keywords</title>
      <dc:creator>Limbareddy</dc:creator>
      <pubDate>Thu, 23 Feb 2023 08:58:03 +0000</pubDate>
      <link>https://dev.to/limbareddy/scope-and-usage-of-let-var-const-keywords-552b</link>
      <guid>https://dev.to/limbareddy/scope-and-usage-of-let-var-const-keywords-552b</guid>
      <description>&lt;h4&gt;
  
  
  for changing of values of var
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var name =" jai";
var name = "ram" ;
console.log(name)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This console prints the value of &lt;strong&gt;ram&lt;/strong&gt;  , var overrides the value of name.  This causes problem while debugging the code and increases the ambiguity of code .&lt;/p&gt;

&lt;h4&gt;
  
  
  For changing values of let
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let  name =" jai";
let name = "ram" ;
console.log(name)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can see error that identifier name has been already taken , so let keyword not allowing reinitialization of  identifier name , we need to &lt;strong&gt;use different names for the let keywords&lt;/strong&gt;. &lt;/p&gt;

&lt;h4&gt;
  
  
  For changing values of const
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 const name ="jai";
  const name =" ram";
console.log(name) 

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

&lt;/div&gt;



&lt;p&gt;This console shows error that  name has already assigned .&lt;/p&gt;

&lt;p&gt;**So its better to use  const for variables &lt;/p&gt;

&lt;p&gt;let for if there is any changing of values &lt;/p&gt;

&lt;p&gt;var is least prioritized **&lt;/p&gt;

&lt;h2&gt;
  
  
  For usage of var in scope
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var  fun ;
for (var  i = 0; i &amp;lt; 3; i++) {
  if(i ==2){ fun =() =&amp;gt;{
    return i; }
  }

}
console.log(fun());
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;when var is declared it is considered as &lt;strong&gt;global variable&lt;/strong&gt; . The above  console returns the value of 3 , because as the for loop iteration changes the i value by increment , so var i takes i value  and returns as 3 .&lt;/p&gt;

&lt;h2&gt;
  
  
  For usage of let in scope
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let  fun ;
for (let  i = 0; i &amp;lt; 3; i++) {
  if(i ==2){ fun =() =&amp;gt;{
    return i; }
  }

}

console.log(fun());

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

&lt;/div&gt;



&lt;p&gt;Let is considered as block variable (within in the scope )&lt;br&gt;
From the above code it returns the value of i as 2 ;&lt;br&gt;
&lt;strong&gt;logically this result  was correc&lt;/strong&gt;t .&lt;/p&gt;

&lt;p&gt;From above Global scope of two keywords we  see they were returning  variables with different outputs  &lt;/p&gt;

&lt;p&gt;let keyword update was came in ES6 , we need to use let instead of var because of let keyword scope , updating values , &lt;/p&gt;

&lt;p&gt;So Finally &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;     ## const &amp;gt;&amp;gt;&amp;gt; let &amp;gt;&amp;gt;&amp;gt; var 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
    </item>
    <item>
      <title>Benefits of having routines</title>
      <dc:creator>Limbareddy</dc:creator>
      <pubDate>Thu, 05 Jan 2023 06:08:02 +0000</pubDate>
      <link>https://dev.to/limbareddy/benefits-of-having-routines-4e9p</link>
      <guid>https://dev.to/limbareddy/benefits-of-having-routines-4e9p</guid>
      <description>&lt;p&gt;Benefits of “Clarity Routines” &lt;br&gt;
What you can expect from following the routines:&lt;br&gt;
• &lt;strong&gt;Increased productivity&lt;br&gt;
• Increased well being&lt;br&gt;
• Being more present&lt;br&gt;
• Improved creativity&lt;br&gt;
• Waking up excited&lt;br&gt;
• Peace of mind&lt;br&gt;
• More energy&lt;br&gt;
• Feeling light&lt;br&gt;
• Less worries&lt;br&gt;
• Better sleep&lt;br&gt;
• Calmness&lt;/strong&gt;&lt;br&gt;
Who does not want that?&lt;br&gt;
 let's get to the routines&lt;/p&gt;




&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                     Daily Morning 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;1. Drink water&lt;/strong&gt; &lt;br&gt;
Yes it’s the most basic thing but it still is vital. When you wake &lt;br&gt;
up your body is dehydrated and thus does not function &lt;br&gt;
optimally. It is no surprise you will feel tired if your body is not &lt;br&gt;
properly hydrated. So your first action in the morning should be &lt;br&gt;
to drink a big glass of water. I like to squeeze half a lemon into &lt;br&gt;
my water. It gives me valuable vitamin C and makes me feel &lt;br&gt;
extra recharged. &lt;/p&gt;




&lt;p&gt;&lt;strong&gt;2. Gratitude&lt;/strong&gt;&lt;br&gt;
Remember that your mind is a blank state in the morning? &lt;/p&gt;

&lt;p&gt;So, instead of grabbing your phone and drowning your mind &lt;br&gt;
with cheap dopamine hits and messages you need to answer &lt;br&gt;
we are going to fill it with gratitude. Every morning write down &lt;br&gt;
three different things you are grateful for (use a pen and a &lt;br&gt;
notebook for this). We have so many blessings in this life that &lt;br&gt;
we too often forget. Making time in the morning to remind &lt;br&gt;
yourself of all the blessings you got is a great way to start the &lt;br&gt;
day with a positive attitude and a feeling of abundance. &lt;br&gt;
 7 of 11&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;3. Move your body&lt;/strong&gt;&lt;br&gt;
To really get you started for the day you need to get your blood &lt;br&gt;
flowing. You do this by moving your body. Because a healthy &lt;br&gt;
body is a body that moves. I personally go for a walk in the &lt;br&gt;
morning to move and get some fresh air. Another option is to &lt;br&gt;
do Yoga. It does not only provide increased blood flow but the &lt;br&gt;
stretching also makes you more flexible. The health benefits of &lt;br&gt;
Yoga and walking are too many to be listed right here so just &lt;br&gt;
do it and you feel it for yourself! You can do any other &lt;br&gt;
movement of your choice but do 10 minutes of movement &lt;br&gt;
every morning MINIMUM!&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;4. Meditate&lt;/strong&gt;&lt;br&gt;
When our mind is empty in the morning it is a great time to &lt;br&gt;
meditate and to connect to our awareness to let it shine &lt;br&gt;
through the rest of the day. Every morning sit down for at least &lt;br&gt;
10 minutes and meditate. You can pay attention to your breath &lt;br&gt;
or just observe your thoughts, any meditation is fine. &lt;/p&gt;

&lt;p&gt;I personally start by observing my breath for a few minutes and &lt;br&gt;
then I visualize my ideal life in concrete detail. After I have done &lt;br&gt;
that I set a clear intention for the day in my mind and the &lt;br&gt;
thoughts and actions I want to be aware of during the day. This &lt;br&gt;
allows me to go through the day with a clear purpose and a &lt;br&gt;
clear mind.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;5. Journal&lt;/strong&gt;&lt;br&gt;
There is so much in your head. Put it on paper. Clear your &lt;br&gt;
mind. Journaling is a great way to organize your thoughts and &lt;br&gt;
keep track of how your life is going. Life happens fast and if we &lt;br&gt;
do not pay attention it goes by without us even noticing it. By &lt;br&gt;
journaling we can keep track and put a stop to the altering of &lt;br&gt;
memories. Looking back at journal entries will give you the &lt;br&gt;
opportunity to re-evaluate what worked and what didn’t. Live &lt;br&gt;
consciously, write your ideas and experiences down!&lt;/p&gt;

</description>
      <category>watercooler</category>
    </item>
  </channel>
</rss>
