<?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: Ayesha Ali</title>
    <description>The latest articles on DEV Community by Ayesha Ali (@ayeshabaloch123).</description>
    <link>https://dev.to/ayeshabaloch123</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%2F799416%2Faf66b216-35a9-4c1b-b742-15a720e53a21.jpeg</url>
      <title>DEV Community: Ayesha Ali</title>
      <link>https://dev.to/ayeshabaloch123</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ayeshabaloch123"/>
    <language>en</language>
    <item>
      <title>⚡Two Ways to Merge Arrays in JavaScript</title>
      <dc:creator>Ayesha Ali</dc:creator>
      <pubDate>Fri, 18 Feb 2022 11:55:05 +0000</pubDate>
      <link>https://dev.to/ayeshabaloch123/two-ways-to-merge-arrays-in-javascript-d68</link>
      <guid>https://dev.to/ayeshabaloch123/two-ways-to-merge-arrays-in-javascript-d68</guid>
      <description>&lt;p&gt;Hi  Everyone 👋 &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ujZp4iZ1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/35of0rmnckpm9shyixuo.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ujZp4iZ1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/35of0rmnckpm9shyixuo.jpeg" alt="Image description" width="713" height="330"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am here to discuss with you Spread operator "..." And .Concat() &lt;br&gt;
 method in JavaScript.&lt;/p&gt;

&lt;p&gt;⚡Here are 2 ways to combine your arrays and return a NEW array. I &lt;br&gt;
 like using the Spread operator, but if you need older Browser &lt;br&gt;
 support you can go through .Concat().&lt;/p&gt;

&lt;p&gt;⚡Spread is fantastic when you know beforehand that you're dealing &lt;br&gt;
 with arrays. But what happens when the source is something else.&lt;/p&gt;

&lt;p&gt;✍️Lets walk through an example,&lt;br&gt;
 const isArray = [1,2,3];&lt;br&gt;
 const notArray = 'random';&lt;/p&gt;

&lt;p&gt;And we want this output : [1, 2, 3, 'random']&lt;/p&gt;

&lt;p&gt;Here using spread operator the output comes &lt;br&gt;
  😱 [ 1, 2, 3, 'r', 'a', 'n', 'd', 'o', 'm' ]&lt;/p&gt;

&lt;p&gt;And with .concat it works fantastic&lt;br&gt;
  ✅  [ 1, 2, 3, 'random' ]&lt;/p&gt;

&lt;p&gt;Note !! &lt;br&gt;
So here's the quick rule. If you know you're dealing with arrays, use spread. But if you might be dealing with the possibility with a non-array, then use Concat to merge an array. 👍&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>react</category>
      <category>programming</category>
    </item>
    <item>
      <title>⚡Use of 'include' Method in JavaScript</title>
      <dc:creator>Ayesha Ali</dc:creator>
      <pubDate>Fri, 04 Feb 2022 12:11:33 +0000</pubDate>
      <link>https://dev.to/ayeshabaloch123/use-of-include-method-in-javascript-42eo</link>
      <guid>https://dev.to/ayeshabaloch123/use-of-include-method-in-javascript-42eo</guid>
      <description>&lt;p&gt;Hey guys, Hope you are all well.&lt;br&gt;
Let's discuss 'include' method in JavaScript .It has many uses we talk about one of them here.&lt;/p&gt;

&lt;p&gt;▶  Use 'include' method for multiple Criteria.&lt;/p&gt;

&lt;p&gt;If you have to check a lot of conditions in your "if" then instead of extending the statement with more " || " or operator, Write your condition by using Array. include.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5xPdnD1l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9p14da5c5anhf7qym1fw.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5xPdnD1l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9p14da5c5anhf7qym1fw.jpeg" alt="Image description" width="622" height="243"&gt;&lt;/a&gt;&lt;br&gt;
Shorter and more declarative !&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>First Post</title>
      <dc:creator>Ayesha Ali</dc:creator>
      <pubDate>Thu, 20 Jan 2022 13:19:48 +0000</pubDate>
      <link>https://dev.to/ayeshabaloch123/first-post-33of</link>
      <guid>https://dev.to/ayeshabaloch123/first-post-33of</guid>
      <description>&lt;p&gt;Hi 👋, Dev Community&lt;/p&gt;

&lt;p&gt;I am Ayesha Baloch, an undergraduate student of software engineering at Mehran UET Jamshoro. I have 1year+ experience in front-end development. I also worked in Java and C++ with on multiple projects. Currently I am learning Mern-Stack .&lt;br&gt;
         Would like to explore more to the dev community and wanna create network with different dev's 🙌💖&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>discuss</category>
      <category>firstpost</category>
    </item>
    <item>
      <title>⚡Var, Let, and Const in JavaScript</title>
      <dc:creator>Ayesha Ali</dc:creator>
      <pubDate>Wed, 19 Jan 2022 19:18:09 +0000</pubDate>
      <link>https://dev.to/ayeshabaloch123/var-let-and-const-in-javascript-2dhc</link>
      <guid>https://dev.to/ayeshabaloch123/var-let-and-const-in-javascript-2dhc</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7aGUhEdz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jc913eegcex2lyswghqk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7aGUhEdz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jc913eegcex2lyswghqk.png" alt="Image description" width="620" height="455"&gt;&lt;/a&gt;Let’s briefly discuss the concept of Var, let, and Const in JavaScript.They are mostly asked In programming interviews, and we may somehow be confused about their differences and use them Viceversa.&lt;/p&gt;

&lt;p&gt;♦var&lt;/p&gt;

&lt;p&gt;This is the default: it creates a global scoped(can be accessed anywhere in the program) variable which can be reassigned or redeclared later on.&lt;/p&gt;

&lt;p&gt;♦let&lt;/p&gt;

&lt;p&gt;This was introduced in ES6 and it is the preferred way over using var. It creates a block-scoped(only accessed in a particular block in which it is declared) variable which can be reassigned but can’t be redeclared.&lt;/p&gt;

&lt;p&gt;♦const&lt;/p&gt;

&lt;p&gt;It was introduced in ES6 along with let. It also creates a block-scoped variable but this can’t be reassigned nor redeclared. const should be used when you don’t want to reassign a value later on.&lt;/p&gt;

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