<?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: Pritom Deb</title>
    <description>The latest articles on DEV Community by Pritom Deb (@pritomdbhaskar).</description>
    <link>https://dev.to/pritomdbhaskar</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%2F779026%2F6e623ca3-d5b9-4a31-bd4f-82f44739bcda.jpeg</url>
      <title>DEV Community: Pritom Deb</title>
      <link>https://dev.to/pritomdbhaskar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pritomdbhaskar"/>
    <language>en</language>
    <item>
      <title>Important string methods</title>
      <dc:creator>Pritom Deb</dc:creator>
      <pubDate>Mon, 27 Dec 2021 15:54:55 +0000</pubDate>
      <link>https://dev.to/pritomdbhaskar/important-string-methods-59h4</link>
      <guid>https://dev.to/pritomdbhaskar/important-string-methods-59h4</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. &lt;u&gt;concat&lt;/u&gt;(str1, str2, ... , strN)&lt;/strong&gt;&lt;br&gt;
The concat() method joins two or more strings. The concat() method does not change the existing strings. The concat() method returns a new string.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HmDEHHuU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/um43uzo65oo60xuvvkkh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HmDEHHuU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/um43uzo65oo60xuvvkkh.png" alt="Image description" width="880" height="493"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. &lt;u&gt;endsWith&lt;/u&gt;(searchString, length)&lt;/strong&gt;&lt;br&gt;
Checks whether a string ends with specified string/characters. It only returns true or false. The endsWith() method is case sensitive.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yJpIxBqn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vl8ycl51un4e7ixx3v4a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yJpIxBqn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vl8ycl51un4e7ixx3v4a.png" alt="Image description" width="880" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. &lt;u&gt;includes&lt;/u&gt;(searchString, position)&lt;/strong&gt;&lt;br&gt;
Checks whether a string contains the specified string/characters. It only returns true or false. The includes() method is case sensitive.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Zg7jp5VH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/az4whit7yf3iyrugrerr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Zg7jp5VH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/az4whit7yf3iyrugrerr.png" alt="Image description" width="880" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. &lt;u&gt;indexOf&lt;/u&gt;(searchValue, fromIndex)&lt;/strong&gt;&lt;br&gt;
Returns the position of the first found occurrence of a specified value in a string. The indexOf() method returns -1 if the value is not found. The indexOf() method is case sensitive.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_c3xc7HS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hmx3ymbg44zadz8wlwxs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_c3xc7HS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hmx3ymbg44zadz8wlwxs.png" alt="Image description" width="880" height="523"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. &lt;u&gt;lastIndexOf&lt;/u&gt;(searchValue, fromIndex)&lt;/strong&gt;&lt;br&gt;
Returns the position of the last found occurrence of a specified value in a string. The indexOf() method returns -1 if the value is not found. The lastIndexOf() method is case sensitive.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iHOQQYeI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gjdoafhg6ds08mwy5w7o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iHOQQYeI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gjdoafhg6ds08mwy5w7o.png" alt="Image description" width="880" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. &lt;u&gt;replace&lt;/u&gt;(regexp/substr, newSubstr/replacerFunction)&lt;/strong&gt;&lt;br&gt;
Searches a string for a specified value, or a regular expression, and returns a new string where the specified values are replaced.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Sm_5tCX2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9klhlbs5o3qtcter6dds.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Sm_5tCX2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9klhlbs5o3qtcter6dds.png" alt="Image description" width="880" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. &lt;u&gt;slice&lt;/u&gt;(beginIndex, endIndex)&lt;/strong&gt;&lt;br&gt;
Extracts a part of a string and returns a new string.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yVHBkTVD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xyvwzar4loyxeyyoqku5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yVHBkTVD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xyvwzar4loyxeyyoqku5.png" alt="Image description" width="880" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8. &lt;u&gt;split&lt;/u&gt;(separator, limit)&lt;/strong&gt;&lt;br&gt;
Splits a string into an array of substrings. If (" ") is used as separator, the string is split between words.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MJOnB8_d--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y2byid4qxm3ylo8ifzfc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MJOnB8_d--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y2byid4qxm3ylo8ifzfc.png" alt="Image description" width="880" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9. &lt;u&gt;startsWith&lt;/u&gt;(searchString, position)&lt;/strong&gt;&lt;br&gt;
Checks whether a string begins with specified characters. It only returns true or false. The startsWith() method is case sensitive.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--F0W6GTMn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fvcmrrp7dcy5cy1k1di9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--F0W6GTMn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fvcmrrp7dcy5cy1k1di9.png" alt="Image description" width="880" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10. &lt;u&gt;toLocaleLowerCase&lt;/u&gt;()&lt;/strong&gt;&lt;br&gt;
Converts a string to lowercase letters, according to the host's locale. The locale is based on the language settings of the browser. The toLocaleLowerCase() returns the same result as toLowerCase(), except for locales that conflict with the regular Unicode case mappings (such as Turkish).&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MV2tdIin--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l9321uhxescypt2mu7og.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MV2tdIin--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l9321uhxescypt2mu7og.png" alt="Image description" width="880" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;11. &lt;u&gt;toLocaleUpperCase&lt;/u&gt;()&lt;/strong&gt;&lt;br&gt;
Converts a string to uppercase letters, according to the host's locale. The locale is based on the language settings of the browser. The toLocaleUpperrCase() returns the same result as toLowerCase(), except for locales that conflict with the regular Unicode case mappings (such as Turkish).&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8ffLltFC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6fbo1p177vspfhlqrp9v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8ffLltFC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6fbo1p177vspfhlqrp9v.png" alt="Image description" width="880" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;12. &lt;u&gt;toLowerCase&lt;/u&gt;()&lt;/strong&gt;&lt;br&gt;
Converts a string to lowercase letters.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--82RS1vub--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9qir24tde4hdothd9gkg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--82RS1vub--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9qir24tde4hdothd9gkg.png" alt="Image description" width="880" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;13. &lt;u&gt;toLowerCase&lt;/u&gt;()&lt;/strong&gt;&lt;br&gt;
Converts a string to uppercase letters.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IbJKvlTO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hgiv3w0ops8c11kjsosf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IbJKvlTO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hgiv3w0ops8c11kjsosf.png" alt="Image description" width="880" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Important Math methods</title>
      <dc:creator>Pritom Deb</dc:creator>
      <pubDate>Wed, 22 Dec 2021 20:11:27 +0000</pubDate>
      <link>https://dev.to/pritomdbhaskar/important-math-methods-1od0</link>
      <guid>https://dev.to/pritomdbhaskar/important-math-methods-1od0</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. &lt;u&gt;Math.min&lt;/u&gt;(value0, value1, ... , valueN)&lt;/strong&gt;&lt;br&gt;
The Math.min( ) method is used to find the lowest value in a list of arguments. Have a look at the example below:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BURYYAem--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2yx65cleyaalgoz6ylp0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BURYYAem--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2yx65cleyaalgoz6ylp0.png" alt="Image description" width="880" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. &lt;u&gt;Math.max&lt;/u&gt;(value0, value1, /* ... ,*/ valueN)&lt;/strong&gt;&lt;br&gt;
The Math.max( ) method is used to find the highest value in a list of arguments. Have a look at the example below:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hOV_Fb_i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cfr6g4fxxi3l4ehdls62.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hOV_Fb_i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cfr6g4fxxi3l4ehdls62.png" alt="Image description" width="880" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. &lt;u&gt;Math.round&lt;/u&gt;(a number value)&lt;/strong&gt;&lt;br&gt;
The Math.round(x) method returns the value of a number x rounded to its nearest integer:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GMaeAqRc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ofid078nc48shz16vllu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GMaeAqRc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ofid078nc48shz16vllu.png" alt="Image description" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. &lt;u&gt;Math.sqrt&lt;/u&gt;(a number value)&lt;/strong&gt;&lt;br&gt;
The Math.sqrt(x) is used to return the square root of a number x. If the value of x is negative, Math.sqrt() returns NaN. Have a look at the example below:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--efZIlxLi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5v9uyl11v1jemitrn8es.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--efZIlxLi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5v9uyl11v1jemitrn8es.png" alt="Image description" width="880" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. &lt;u&gt;Math.pow&lt;/u&gt;(base, exponent)&lt;/strong&gt;&lt;br&gt;
The Math.pow(x, y) returns the value of x to the power of y. If the base is negative and the exponent is not an integer, the result is NaN. Let’s have a look at the below example:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5TUcef-D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/asqnk16qzhhqrtpzmpr9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5TUcef-D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/asqnk16qzhhqrtpzmpr9.png" alt="Image description" width="880" height="578"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. &lt;u&gt;Math.floor&lt;/u&gt;(a number value)&lt;/strong&gt;&lt;br&gt;
The Math.floor(x) returns the value of x rounded down to its nearest integer. Math.floor(null) returns 0, not a NaN.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Elw9Jil2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9c5zjb8zp815qo6vtv78.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Elw9Jil2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9c5zjb8zp815qo6vtv78.png" alt="Image description" width="880" height="583"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. &lt;u&gt;Math.random&lt;/u&gt;( )&lt;/strong&gt;&lt;br&gt;
The Math.random() returns a random number between 0 and 1. It’s often used to extract random elements from an array.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OUTbAoFc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f73b6dwexhaq2mg86heh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OUTbAoFc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f73b6dwexhaq2mg86heh.png" alt="Image description" width="880" height="335"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8. &lt;u&gt;Math.ceil&lt;/u&gt;(a number value)&lt;/strong&gt;&lt;br&gt;
The Math.ceil(x) returns the value of x rounded up to its nearest integer:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rnxY4EBK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1nje1sbh4w3b1ifddmgm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rnxY4EBK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1nje1sbh4w3b1ifddmgm.png" alt="Image description" width="880" height="488"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Important array methods</title>
      <dc:creator>Pritom Deb</dc:creator>
      <pubDate>Wed, 22 Dec 2021 16:24:26 +0000</pubDate>
      <link>https://dev.to/pritomdbhaskar/important-array-methods-2dja</link>
      <guid>https://dev.to/pritomdbhaskar/important-array-methods-2dja</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. &lt;u&gt;concat&lt;/u&gt;()&lt;/strong&gt;&lt;br&gt;
Joins two or more arrays, and returns a copy of the joined arrays&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--V-8sE4MV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xcz6ex9h9g3r5ijes24n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--V-8sE4MV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xcz6ex9h9g3r5ijes24n.png" alt="" width="836" height="520"&gt;&lt;/a&gt;&lt;br&gt;
the num will return [1, 2, 3, 4, 5, 6]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. &lt;u&gt;every&lt;/u&gt;((element, index, array) =&amp;gt; { /* ... */ })&lt;/strong&gt;&lt;br&gt;
Checks if every element in an array pass a test&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cTchVnt7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/brkm560g0t3t4cj1ppbc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cTchVnt7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/brkm560g0t3t4cj1ppbc.png" alt="Image description" width="880" height="709"&gt;&lt;/a&gt;&lt;br&gt;
teenager will reply true while adult while reply false. The every() method only returns true or false. The every() method does not execute the function for empty elements. Every element has to pass the test for the every() method to work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. &lt;u&gt;filter&lt;/u&gt;((element, index, array) =&amp;gt; { /* ... */ })&lt;/strong&gt;&lt;br&gt;
Creates a new array with every element in an array that pass a test&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EtnEijBA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kg9l5d55s1s56tl2qobb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EtnEijBA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kg9l5d55s1s56tl2qobb.png" alt="Image description" width="874" height="632"&gt;&lt;/a&gt;&lt;br&gt;
adult will return a new array ["18","19","20"]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. &lt;u&gt;find&lt;/u&gt;((element, index, array) =&amp;gt; { /* ... */ })&lt;/strong&gt;&lt;br&gt;
Returns the value of the first element in an array that pass a test&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nyZSLi5M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sge0hcz5tk6t5bxhrycc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nyZSLi5M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sge0hcz5tk6t5bxhrycc.png" alt="Image description" width="856" height="632"&gt;&lt;/a&gt;&lt;br&gt;
adult will return 18.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. &lt;u&gt;findIndex&lt;/u&gt;((element, index, array) =&amp;gt; { /* ... */ })&lt;/strong&gt;&lt;br&gt;
Returns the index of the first element in an array that pass a test&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RKJ1-ysD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mwr02mdjx43cjh2t8ag6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RKJ1-ysD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mwr02mdjx43cjh2t8ag6.png" alt="Image description" width="880" height="602"&gt;&lt;/a&gt;&lt;br&gt;
adult will return 3. Will return -1 if no element matches the condition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. &lt;u&gt;forEach&lt;/u&gt;((element, index, array) =&amp;gt; { /* ... */ })&lt;/strong&gt;&lt;br&gt;
Calls a function for each array element&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wTKRIrAp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6yqr5etc4m33ag249x4c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wTKRIrAp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6yqr5etc4m33ag249x4c.png" alt="Image description" width="880" height="625"&gt;&lt;/a&gt;&lt;br&gt;
adult will return undefined. It is very important to note that forEach only iterate through a array. It doesn't return any value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. &lt;u&gt;Array.form&lt;/u&gt;(arrayLike, (element, index) =&amp;gt; { /* ... */ })&lt;/strong&gt;&lt;br&gt;
Creates an array from an object&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QKiUU7M7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hmvp9rjsagzth9j76cun.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QKiUU7M7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hmvp9rjsagzth9j76cun.png" alt="Image description" width="880" height="445"&gt;&lt;/a&gt;&lt;br&gt;
nameArray will return ["p", "r", "i", "t", "o", "m"]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8. &lt;u&gt;includes&lt;/u&gt;(searchElement, fromIndex)&lt;/strong&gt;&lt;br&gt;
Check if an array contains the specified element&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JuTlNMys--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5qluv281bfkuh8yfhrxt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JuTlNMys--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5qluv281bfkuh8yfhrxt.png" alt="Image description" width="856" height="558"&gt;&lt;/a&gt;&lt;br&gt;
adult will return true.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9. &lt;u&gt;indexOf&lt;/u&gt;(searchElement, fromIndex)&lt;/strong&gt;&lt;br&gt;
Search the array for an element and returns its position&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_mInP0V7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v7vm1i80qwq6e8i5mz57.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_mInP0V7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v7vm1i80qwq6e8i5mz57.png" alt="Image description" width="856" height="558"&gt;&lt;/a&gt;&lt;br&gt;
adult will return 3. Will return -1 if no element matches the condition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10. &lt;u&gt;lastIndexOf&lt;/u&gt;(searchElement, fromIndex)&lt;/strong&gt;&lt;br&gt;
Search the array for an element, starting at the end, and returns its position&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--x3DsYUSr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cxp9tuf0lo5etu6qa550.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--x3DsYUSr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cxp9tuf0lo5etu6qa550.png" alt="Image description" width="880" height="541"&gt;&lt;/a&gt;&lt;br&gt;
adult will return 4. Will return -1 if no element matches the condition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;11. &lt;u&gt;map&lt;/u&gt;((element, index, array) =&amp;gt; { /* ... */ })&lt;/strong&gt;&lt;br&gt;
Creates a new array with the result of calling a function for each array element&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zhAR8RmC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rnl1s231c067dnzqubi8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zhAR8RmC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rnl1s231c067dnzqubi8.png" alt="Image description" width="880" height="552"&gt;&lt;/a&gt;&lt;br&gt;
everyone will return [14, 15, 16, 17, 18, 19, 20]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;12. &lt;u&gt;pop&lt;/u&gt;()&lt;/strong&gt;&lt;br&gt;
Removes the last element of an array, and returns that element&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IpE912u8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8qj2mrwkvbc1s26dp6kn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IpE912u8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8qj2mrwkvbc1s26dp6kn.png" alt="Image description" width="880" height="487"&gt;&lt;/a&gt;&lt;br&gt;
newAges will return 20. pop() returns the element it removed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;13. &lt;u&gt;push&lt;/u&gt;(element0, element1, /* ... ,*/ elementN)&lt;/strong&gt;&lt;br&gt;
Removes the last element of an array, and returns that element&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Ywtva1ZD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/501x13zxnkvg33bashve.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Ywtva1ZD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/501x13zxnkvg33bashve.png" alt="Image description" width="880" height="487"&gt;&lt;/a&gt;&lt;br&gt;
newAges will return 8. The push() method adds new items to the end of an array. The push() method returns the new length.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;14. &lt;u&gt;reduce&lt;/u&gt;((previousValue, currentValue, currentIndex, array) =&amp;gt; { /* ... */ }, initialValue)&lt;/strong&gt;&lt;br&gt;
Reduce the values of an array to a single value (going left-to-right)&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7azOg-m---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4gxngg5chlsr1lq21mrk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7azOg-m---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4gxngg5chlsr1lq21mrk.png" alt="Image description" width="880" height="429"&gt;&lt;/a&gt;&lt;br&gt;
total will return 10. The reduce() method returns a single value: the function's accumulated result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;15. &lt;u&gt;reduceRight&lt;/u&gt;((previousValue, currentValue, currentIndex, array) =&amp;gt; { /* ... */ }, initialValue)&lt;/strong&gt;&lt;br&gt;
Reduce the values of an array to a single value (going right-to-left)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--j7pHg0km--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/epprkrx34mj6dqu5d1oz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--j7pHg0km--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/epprkrx34mj6dqu5d1oz.png" alt="Image description" width="880" height="403"&gt;&lt;/a&gt;&lt;br&gt;
total will return 10. The reduceRight() method returns a single value: the function's accumulated result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;16. &lt;u&gt;reverse&lt;/u&gt;()&lt;/strong&gt;&lt;br&gt;
Reverses the order of the elements in an array&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qRzw4EVK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bi7mefoq94nearhsvavr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qRzw4EVK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bi7mefoq94nearhsvavr.png" alt="Image description" width="806" height="596"&gt;&lt;/a&gt;&lt;br&gt;
newAges and ages both will return [4, 3, 2, 1]. The reverse() method overwrites the original array.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;17. &lt;u&gt;shift&lt;/u&gt;()&lt;/strong&gt;&lt;br&gt;
Removes the first element of an array, and returns that element&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kwXrRU55--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wx1ki24om43s4m5osyul.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kwXrRU55--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wx1ki24om43s4m5osyul.png" alt="Image description" width="772" height="558"&gt;&lt;/a&gt;&lt;br&gt;
newAges will return 1. The shift() method returns the shifted element.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;18. &lt;u&gt;slice&lt;/u&gt;(start, end)&lt;/strong&gt;&lt;br&gt;
Selects a part of an array, and returns the new array&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FmoVC_Sg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xqxkwyo8xvrn69sjvf9p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FmoVC_Sg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xqxkwyo8xvrn69sjvf9p.png" alt="Image description" width="824" height="558"&gt;&lt;/a&gt;&lt;br&gt;
newAges will return [1, 2]. The slice() method returns selected elements in an array, as a new array.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;19. &lt;u&gt;some&lt;/u&gt;((element, index, array) =&amp;gt; { /* ... */ } )&lt;/strong&gt;&lt;br&gt;
Checks if any of the elements in an array pass a test&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3g67A9LK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oudt6ddjoj50jew2hfh0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3g67A9LK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oudt6ddjoj50jew2hfh0.png" alt="Image description" width="880" height="592"&gt;&lt;/a&gt;&lt;br&gt;
newAges will return true. The some() method only returns true or false. Only one element has to pass the test for some() method to work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;20. &lt;u&gt;splice&lt;/u&gt;(start, deleteCount, item1, item2, itemN )&lt;/strong&gt;&lt;br&gt;
Adds/Removes elements from an array&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QNl0gIHw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/st6owumpx6y49etma6dq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QNl0gIHw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/st6owumpx6y49etma6dq.png" alt="Image description" width="880" height="558"&gt;&lt;/a&gt;&lt;br&gt;
newAges will return [15, 16, 17]. ages will return [18, 19, 20]. The splice() method overwrites the original array.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;21. &lt;u&gt;toString&lt;/u&gt;()&lt;/strong&gt;&lt;br&gt;
Converts an array to a string, and returns the result&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tXruioGG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pukvasgcqchpfmuly6ub.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tXruioGG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pukvasgcqchpfmuly6ub.png" alt="Image description" width="824" height="558"&gt;&lt;/a&gt;&lt;br&gt;
newAges will return "1,2,3,4,5". The toString() method returns a string with array values separated by commas.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;22. &lt;u&gt;unshift&lt;/u&gt;(element0, element1, /* ... ,*/ elementN)&lt;/strong&gt;&lt;br&gt;
Adds new elements to the beginning of an array, and returns the new length&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XaFUgg8I--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oowgsepcyxw0t7il713b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XaFUgg8I--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oowgsepcyxw0t7il713b.png" alt="Image description" width="874" height="558"&gt;&lt;/a&gt;&lt;br&gt;
newAges will return 6. The unshift() method overwrites the original array.&lt;/p&gt;

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