<?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: Soundarya SVS</title>
    <description>The latest articles on DEV Community by Soundarya SVS (@soundarya_svs_01d4781241c).</description>
    <link>https://dev.to/soundarya_svs_01d4781241c</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1928627%2F5511f6b9-12b2-49ed-bcf1-32d44767103c.png</url>
      <title>DEV Community: Soundarya SVS</title>
      <link>https://dev.to/soundarya_svs_01d4781241c</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/soundarya_svs_01d4781241c"/>
    <language>en</language>
    <item>
      <title>Array Methods</title>
      <dc:creator>Soundarya SVS</dc:creator>
      <pubDate>Tue, 20 Aug 2024 09:50:52 +0000</pubDate>
      <link>https://dev.to/soundarya_svs_01d4781241c/array-methods-3fml</link>
      <guid>https://dev.to/soundarya_svs_01d4781241c/array-methods-3fml</guid>
      <description>&lt;p&gt;In JavaScript, arrays come with several methods to manipulate their elements, including Push(), Pop(), Unshift(), and Shift(). &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Push() Method&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Purpose: Adds one or more elements to the end of an array.&lt;/li&gt;
&lt;li&gt;Returns: The new length of the array.&lt;/li&gt;
&lt;li&gt;Example: let arr = [1, 2, 3];
     arr.push(4);
output:   [1,2,3,4];&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Pop() Method&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Purpose: Removes the last element from an array.&lt;/li&gt;
&lt;li&gt;Returns: The removed element.&lt;/li&gt;
&lt;li&gt;Example: let arr = [1, 2, 3, 4]
    let lastElement = arr.pop();
output:   [1,2,3];&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Unshift() Method&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Purpose: Adds one or more elements to the beginning of an array.&lt;/li&gt;
&lt;li&gt;Returns: The new length of the array. &lt;/li&gt;
&lt;li&gt;Example: let arr = [2, 3, 4];
     arr.unshift(1);
output: [1,2,3,4];&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Shift() Method &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Purpose: Removes the first element from an array.&lt;/li&gt;
&lt;li&gt;Returns: The removed element.&lt;/li&gt;
&lt;li&gt;Example: let arr = [1, 2, 3, 4];
     let firstElement = arr.shift();
output:  [2,3,4];&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

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