<?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: Salah Uddin</title>
    <description>The latest articles on DEV Community by Salah Uddin (@salah).</description>
    <link>https://dev.to/salah</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%2F576791%2F09babf69-4002-4a46-83ed-c3214e94135c.JPG</url>
      <title>DEV Community: Salah Uddin</title>
      <link>https://dev.to/salah</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/salah"/>
    <language>en</language>
    <item>
      <title>      To Curly Brace is to Block</title>
      <dc:creator>Salah Uddin</dc:creator>
      <pubDate>Thu, 25 Feb 2021 21:08:02 +0000</pubDate>
      <link>https://dev.to/salah/to-curly-brace-is-to-block-4o2h</link>
      <guid>https://dev.to/salah/to-curly-brace-is-to-block-4o2h</guid>
      <description>&lt;p&gt;&lt;iframe width="100%" height="80px" src="https://open.spotify.com/embed/track/2q5vF4iyk4JtNa4T3aZfNk"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;I've wrestled with making this blog post(let alone my first one!).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I'll be briefly discussing global and block scopes&lt;/strong&gt;, with more an emphasis on the block scope. Why did I wrestle(a match I clearly lost) with this? To me, seemingly to others but not myself, block scoping was a very basic component of JavaScript.&lt;/p&gt;

&lt;p&gt;Look, I've visited global and block scopes before, in fact in a boot camp I left I was taught it. Do not ask me why but I did not understand it when it was taught. It may be I'm not good at soaking in ideas as I listen to them but rather need to be able to implement them at my speed. To that end, Codecademy has been a huge boost.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="400" src="https://jsitor.com/embed/KGdK0m9D_"&gt;
&lt;/iframe&gt;
 &lt;/p&gt;

&lt;p&gt;Here's a bit of code, the &lt;strong&gt;global scope&lt;/strong&gt; is everything &lt;strong&gt;outside&lt;/strong&gt; curly braces. Literally everything &lt;strong&gt;in&lt;/strong&gt; the curly brackets is block scope. &lt;/p&gt;

&lt;p&gt;Think of it this way, "&lt;em&gt;const twitter = '@mynameissalah'&lt;/em&gt;" is an h1 tag &amp;amp; everything in curly brackets is the css for the h1. That is to say, the curly brackets much like the css both respectively add a functionality to the parent they are assigned to.&lt;/p&gt;

&lt;p&gt;I hope this helps at least one person! I feel like I was the outlier who didn't understand this easily while others seemed to—until it clicked &amp;amp; it was wildly simple. I don't learn as easily as most people &amp;amp; if that's you as well, hi! Wishing you the best in your learning, be easy on yourself. :]&lt;/p&gt;

&lt;h5&gt;
  
  
  *if I've made any mistakes or made things potentially confusing PLEASE contact me to correct me. I am by no means a teacher, I'm still learning so please let me know!
&lt;/h5&gt;

</description>
      <category>blockscope</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>globalscope</category>
    </item>
  </channel>
</rss>
