<?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: Seanders-Hancevic</title>
    <description>The latest articles on DEV Community by Seanders-Hancevic (@seandershancevic).</description>
    <link>https://dev.to/seandershancevic</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%2F100512%2F2ed1f442-d545-48c8-969f-077b492c6af0.png</url>
      <title>DEV Community: Seanders-Hancevic</title>
      <link>https://dev.to/seandershancevic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/seandershancevic"/>
    <language>en</language>
    <item>
      <title>A basic intro to different kinds of loops and conditionals</title>
      <dc:creator>Seanders-Hancevic</dc:creator>
      <pubDate>Fri, 09 Nov 2018 21:03:47 +0000</pubDate>
      <link>https://dev.to/seandershancevic/a-basic-intro-to-different-kinds-of-loops-and-conditionals-2lnd</link>
      <guid>https://dev.to/seandershancevic/a-basic-intro-to-different-kinds-of-loops-and-conditionals-2lnd</guid>
      <description>&lt;p&gt;Looping through information in javascript is something that happens in almost every program or functioning website. The basics of forming these loops and testing them out in javascript is really easy though! First of all a loop is a section of code that, depending on how its written, cycles through that specific section until certain conditions are met. That's where the conditionals come in. They determine how and when these loops run, so you can control their functionality. Here are some examples of the more common types of loops you'll encounter early in your coding career!&lt;/p&gt;

&lt;p&gt;The first is the "for" loop. The "for" loop, loops through the data until the conditions in the parenthesis are met. As long as "i" is less than or equal to "&amp;lt;=" 10, the loop will run.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---PD6oZP4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/0fjbsuaptcb2sfsacjtt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---PD6oZP4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/0fjbsuaptcb2sfsacjtt.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Another type of of loop is the "while" loop. This is similar to the "for" loop because it also loops through the data while the conditions you pass are true. While "i" is less than or equal to 10, the loop will continue to run.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GHCqz9cR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/drofi25yihj5kt8lkhh2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GHCqz9cR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/drofi25yihj5kt8lkhh2.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Conditionals are important to loops because otherwise the loops would just run forever. "if" and "else" are two important conditionals that go hand in hand. It basically mean "if" these conditions aren't met, run this code. Otherwise or "else", run this code. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9ZlVbhpi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/8bkyclktz7gl3mtf2qd6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9ZlVbhpi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/8bkyclktz7gl3mtf2qd6.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These are just basic counting examples to demonstrate how these loops and conditionals work, but you can start to imagine how useful these tools can be while coding with large quantities of data. The applications of loops are almost endless so they are a good thing to master early on!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>An Introduction to Helpful Array Methods</title>
      <dc:creator>Seanders-Hancevic</dc:creator>
      <pubDate>Fri, 02 Nov 2018 18:16:39 +0000</pubDate>
      <link>https://dev.to/seandershancevic/an-introduction-to-helpful-array-methods-3gp7</link>
      <guid>https://dev.to/seandershancevic/an-introduction-to-helpful-array-methods-3gp7</guid>
      <description>&lt;p&gt;I'm not an expert on coding by any means, in fact, I'm currently enrolled in a full-stack development course which I am only in the middle of. That being said, there were a few useful things I learned about arrays and how to deal with the data stored inside of them. However, this post is just about array methods. The first thing i learned about array methods is that the methods will loop through the array for you, searching for data based on the method you used. This means we don't need to use 'for' loops to loop through the entire array, the methods will do it for us.&lt;/p&gt;

&lt;p&gt;The first one is the forEach() array method. This method goes through the entire array and basically grabs each element on the array and then you can perform different actions with that data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5NI-4Qhv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/6ud52wojtiiclvo3qhsb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5NI-4Qhv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/6ud52wojtiiclvo3qhsb.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The next one is the filter() method. This one allows us to filter data out from the array based on the specifications we give it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--o3bGdtll--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/isx7n0snsaounznqr2re.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--o3bGdtll--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/isx7n0snsaounznqr2re.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Another useful method is the includes() method. This loops through the array and finds any element with the parameters you specify, similar to the filter() method.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_x2Cy4-q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ceyhjgaylwbkmmmcyiuq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_x2Cy4-q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ceyhjgaylwbkmmmcyiuq.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is push() which allows you to add new elements to the end of an array. This can be useful for making lists of any kind.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DLVByfW4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/84uq338fh8lah3alrgun.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DLVByfW4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/84uq338fh8lah3alrgun.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally, splice() is a very useful method because it allows to either "splice" and element into the array, or add it, but it can also delete items or "splice" them out in the same fashion.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MjNHwgA6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/jvp1yc7zfui4y1lpbz8h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MjNHwgA6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/jvp1yc7zfui4y1lpbz8h.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These are just a few of the different types of array methods out there, but these are a few I found particularity helpful!&lt;/p&gt;

</description>
      <category>array</category>
      <category>method</category>
      <category>arraymethod</category>
    </item>
  </channel>
</rss>
