<?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: scothinks</title>
    <description>The latest articles on DEV Community by scothinks (@scothinks).</description>
    <link>https://dev.to/scothinks</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%2F485972%2F6aed4a51-d750-4ef6-8bbe-68157f67e1ef.jpg</url>
      <title>DEV Community: scothinks</title>
      <link>https://dev.to/scothinks</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/scothinks"/>
    <language>en</language>
    <item>
      <title>In JS how do you know the right condition to use inside your for loop?</title>
      <dc:creator>scothinks</dc:creator>
      <pubDate>Wed, 09 Dec 2020 23:09:03 +0000</pubDate>
      <link>https://dev.to/scothinks/in-js-how-do-you-know-the-right-condition-to-use-inside-your-for-loop-4blm</link>
      <guid>https://dev.to/scothinks/in-js-how-do-you-know-the-right-condition-to-use-inside-your-for-loop-4blm</guid>
      <description>&lt;p&gt;I'm new to JavaScript and I've been struggling with iterating with for loops. &lt;/p&gt;

&lt;p&gt;The early classes were easy to understand when the condition was simply i &amp;lt; 9 or i &amp;gt; 9. &lt;/p&gt;

&lt;p&gt;The issue I have now is knowing when to use conditions like i &amp;lt; arr.length for example. &lt;/p&gt;

&lt;p&gt;Many times when I do JS challenges and check the solution for challenges I fail, I see these type of conditions and I don't know why one condition is used instead of another. &lt;/p&gt;

&lt;p&gt;Can anyone help me out with this, please? &lt;/p&gt;

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