<?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>Forem: Sivakumar Mathiyalagan</title>
    <description>The latest articles on Forem by Sivakumar Mathiyalagan (@sivakumar_mathiyalagan_).</description>
    <link>https://forem.com/sivakumar_mathiyalagan_</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%2F3795010%2Fa2a27559-c42a-4404-a5f0-8edb29747464.png</url>
      <title>Forem: Sivakumar Mathiyalagan</title>
      <link>https://forem.com/sivakumar_mathiyalagan_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sivakumar_mathiyalagan_"/>
    <language>en</language>
    <item>
      <title>JavaScript Scenario Question-2</title>
      <dc:creator>Sivakumar Mathiyalagan</dc:creator>
      <pubDate>Fri, 17 Apr 2026 16:03:22 +0000</pubDate>
      <link>https://forem.com/sivakumar_mathiyalagan_/javascript-scenario-question-2-3gck</link>
      <guid>https://forem.com/sivakumar_mathiyalagan_/javascript-scenario-question-2-3gck</guid>
      <description>&lt;p&gt;Question 1:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7jg3t84mlkneivzsib5a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7jg3t84mlkneivzsib5a.png" alt=" " width="754" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsel5az6ldxj4wt5dzl0u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsel5az6ldxj4wt5dzl0u.png" alt=" " width="519" height="215"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 2:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuyng4tfazorws17m3lsx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuyng4tfazorws17m3lsx.png" alt=" " width="800" height="178"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbbd0ub3oxgo4w0tjbkur.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbbd0ub3oxgo4w0tjbkur.png" alt=" " width="593" height="214"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 3:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxtdznrmwzlhqelpfkfvo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxtdznrmwzlhqelpfkfvo.png" alt=" " width="691" height="277"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fww3bx2vc9v06hohm81ue.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fww3bx2vc9v06hohm81ue.png" alt=" " width="606" height="217"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 4:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4lnzy574fxlr68oud4ls.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4lnzy574fxlr68oud4ls.png" alt=" " width="731" height="494"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F00u9n8hlxznlsnyaqrgx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F00u9n8hlxznlsnyaqrgx.png" alt=" " width="512" height="217"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 5:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fecl3n4at0q4exqyosnjc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fecl3n4at0q4exqyosnjc.png" alt=" " width="756" height="317"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fba8zzucm5l0whrb2xqfg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fba8zzucm5l0whrb2xqfg.png" alt=" " width="612" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 6:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffuv6gwut88doyq7xccoh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffuv6gwut88doyq7xccoh.png" alt=" " width="800" height="232"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flewgf1z0akr1b6u7sol5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flewgf1z0akr1b6u7sol5.png" alt=" " width="525" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 7:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs63zbm5as24pbvkuy1n7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs63zbm5as24pbvkuy1n7.png" alt=" " width="729" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo13hrjz4mbzxvnw38v1b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo13hrjz4mbzxvnw38v1b.png" alt=" " width="605" height="223"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 8:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw32vr0nkmyp3ooazr4wj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw32vr0nkmyp3ooazr4wj.png" alt=" " width="800" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpuvc2boc7958hzk00aem.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpuvc2boc7958hzk00aem.png" alt=" " width="601" height="254"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 9:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F28jdtrgovekia3m3lzyg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F28jdtrgovekia3m3lzyg.png" alt=" " width="768" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh5i2f33i6m42mj89t0fx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh5i2f33i6m42mj89t0fx.png" alt=" " width="523" height="203"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 10:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftnjeqb27vfselhkdj04r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftnjeqb27vfselhkdj04r.png" alt=" " width="800" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk8j5e3k2fjge2k330q1a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk8j5e3k2fjge2k330q1a.png" alt=" " width="604" height="191"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 11:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fve1qblxhfl3svsyjxbok.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fve1qblxhfl3svsyjxbok.png" alt=" " width="800" height="198"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyptl3n7mnm8bumexcp03.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyptl3n7mnm8bumexcp03.png" alt=" " width="514" height="190"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 12:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1yr7rp3z6ewuvmhkxkof.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1yr7rp3z6ewuvmhkxkof.png" alt=" " width="800" height="237"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2y8phb58miyy1z7j1qvb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2y8phb58miyy1z7j1qvb.png" alt=" " width="604" height="246"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 13:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ho01kld1hotyalfohdh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ho01kld1hotyalfohdh.png" alt=" " width="800" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frv7l5dx9vkgnp6ce9iyp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frv7l5dx9vkgnp6ce9iyp.png" alt=" " width="529" height="233"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 14:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fit4xbpl943r4rrf9olkx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fit4xbpl943r4rrf9olkx.png" alt=" " width="800" height="322"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8nddv3q55ywtr7gvtp9g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8nddv3q55ywtr7gvtp9g.png" alt=" " width="615" height="207"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question 15:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwffuzaomr0h29p86fx4i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwffuzaomr0h29p86fx4i.png" alt=" " width="800" height="346"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm08bbofo0htnl04ns0jb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm08bbofo0htnl04ns0jb.png" alt=" " width="614" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Object &amp; Array Scenario Questions</title>
      <dc:creator>Sivakumar Mathiyalagan</dc:creator>
      <pubDate>Thu, 16 Apr 2026 15:31:25 +0000</pubDate>
      <link>https://forem.com/sivakumar_mathiyalagan_/object-array-scenario-questions-3g58</link>
      <guid>https://forem.com/sivakumar_mathiyalagan_/object-array-scenario-questions-3g58</guid>
      <description>&lt;ol&gt;
&lt;li&gt;User Profile Update&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5m2j8lc1jrsvevyuaz8q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5m2j8lc1jrsvevyuaz8q.png" alt=" " width="690" height="272"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjv1f90vm9nmo42zz0oql.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjv1f90vm9nmo42zz0oql.png" alt=" " width="598" height="214"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Shopping Cart Total&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Falc2y51tz3opj39js46t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Falc2y51tz3opj39js46t.png" alt=" " width="545" height="301"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flyq92td03zsajjdtdkma.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flyq92td03zsajjdtdkma.png" alt=" " width="520" height="150"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.Find Specific Object&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0ue9kfgoomuwafel0zgz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0ue9kfgoomuwafel0zgz.png" alt=" " width="678" height="287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fopeneemrshsho2f942hy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fopeneemrshsho2f942hy.png" alt=" " width="595" height="191"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.Add Item to Array&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwesmdr0jlburexygpkzl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwesmdr0jlburexygpkzl.png" alt=" " width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxv617efpbqli3b1ap6kt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxv617efpbqli3b1ap6kt.png" alt=" " width="601" height="276"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.Count Items in Object&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5050f0c3hwno6bwdbvn3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5050f0c3hwno6bwdbvn3.png" alt=" " width="762" height="231"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9c5xvrzi9ggymsewz0xl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9c5xvrzi9ggymsewz0xl.png" alt=" " width="522" height="153"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.Convert Array to Object&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzbolhtfc25waegcfjmnp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzbolhtfc25waegcfjmnp.png" alt=" " width="800" height="126"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0su2jjp1c9ov6rkcx4v0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0su2jjp1c9ov6rkcx4v0.png" alt=" " width="509" height="218"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Group Users by Role&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F89609vbcddt5new10wf5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F89609vbcddt5new10wf5.png" alt=" " width="800" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F717a3dlvbli96hdl5sd3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F717a3dlvbli96hdl5sd3.png" alt=" " width="531" height="299"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;git url &lt;a href="https://gitlab.com/sivakumar_mathiyalagan/scenario-exercises.git" rel="noopener noreferrer"&gt;https://gitlab.com/sivakumar_mathiyalagan/scenario-exercises.git&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Array Iteration Methods</title>
      <dc:creator>Sivakumar Mathiyalagan</dc:creator>
      <pubDate>Wed, 15 Apr 2026 15:23:48 +0000</pubDate>
      <link>https://forem.com/sivakumar_mathiyalagan_/array-iteration-methods-ko4</link>
      <guid>https://forem.com/sivakumar_mathiyalagan_/array-iteration-methods-ko4</guid>
      <description>&lt;p&gt;&lt;strong&gt;forEach() :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1.This method accepts another function as an Argument(callback Function) to perform certain operation on the array it is iterating&lt;br&gt;
2.To call any of the iteration method must check these criteria&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;must need an object to call the method&lt;/li&gt;
&lt;li&gt;what argument need to be passed&lt;/li&gt;
&lt;li&gt;what return type the iteration method provides&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;forEach method takes 3 arguments&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The item value&lt;/li&gt;
&lt;li&gt;The item index&lt;/li&gt;
&lt;li&gt;The array itself&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And forEach method returns nothing&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6htnjd31w3z4ubolub9o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6htnjd31w3z4ubolub9o.png" alt=" " width="800" height="182"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm9aevy7uxwe8tw79bzgb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm9aevy7uxwe8tw79bzgb.png" alt=" " width="786" height="195"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;map()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Unlike forEach method map method retuns a new Array&lt;br&gt;
It doesnot mutate the original Array&lt;br&gt;
If some index value is not defined in an array for Example&lt;br&gt;
[1,2, ,3,4]&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fremk3ox8hk5wtdcszg6x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fremk3ox8hk5wtdcszg6x.png" alt=" " width="800" height="241"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj0ecz0cro2s25l81r7ev.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj0ecz0cro2s25l81r7ev.png" alt=" " width="800" height="132"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;flatMap()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This method transforms each element into an array, then flattens it one level&lt;br&gt;
map method returns single value make the resultant array as a nested array&lt;br&gt;
whereas flatMap removes the nested format one level deep by default&lt;br&gt;
let's see with example&lt;/p&gt;

&lt;p&gt;in map method:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5iyn5adbbw50sqqcwa0w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5iyn5adbbw50sqqcwa0w.png" alt=" " width="469" height="162"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy5csp0lpq3fxroi6et9x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy5csp0lpq3fxroi6et9x.png" alt=" " width="610" height="265"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Using flatMap method:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdgki66v3g9bye5e1lsru.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdgki66v3g9bye5e1lsru.png" alt=" " width="548" height="173"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwkq9h3q3iglc245vwa6w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwkq9h3q3iglc245vwa6w.png" alt=" " width="606" height="176"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;filter()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This method creates a new array with the filtered value based on the condition provided through call back function&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2j0atmc8nodd114ubd4o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2j0atmc8nodd114ubd4o.png" alt=" " width="465" height="177"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fadlyismwkxxgh7di23tt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fadlyismwkxxgh7di23tt.png" alt=" " width="399" height="205"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;reduce()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This method reduce the array to single value&lt;br&gt;
this runs from left to right but it does not alter the original array&lt;/p&gt;

&lt;p&gt;this methos takes 4 arguments&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The total (the initial value / previously returned value)&lt;/li&gt;
&lt;li&gt;The item value&lt;/li&gt;
&lt;li&gt;The item index&lt;/li&gt;
&lt;li&gt;The array itself&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhm58dyclxa5rx1p73zx9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhm58dyclxa5rx1p73zx9.png" alt=" " width="491" height="234"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzp07ttfqpo6q3209h88b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzp07ttfqpo6q3209h88b.png" alt=" " width="515" height="183"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>SDLC [Software Development Life Cycle] and its Models</title>
      <dc:creator>Sivakumar Mathiyalagan</dc:creator>
      <pubDate>Tue, 14 Apr 2026 06:42:02 +0000</pubDate>
      <link>https://forem.com/sivakumar_mathiyalagan_/sdlc-software-development-life-cycle-and-its-models-41d1</link>
      <guid>https://forem.com/sivakumar_mathiyalagan_/sdlc-software-development-life-cycle-and-its-models-41d1</guid>
      <description>&lt;p&gt;&lt;strong&gt;WHAT IS SDLC ?&lt;/strong&gt;&lt;br&gt;
SDLC is a structured process from initial stage to deployment and maintanence of a software, It defines each stage of the software development typically 6 to 7 phase based on the development model&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Planning &lt;/li&gt;
&lt;li&gt;Analysis &lt;/li&gt;
&lt;li&gt;Design &lt;/li&gt;
&lt;li&gt;Coding &lt;/li&gt;
&lt;li&gt;Testing &lt;/li&gt;
&lt;li&gt;Deployment &lt;/li&gt;
&lt;li&gt;Maintenance &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;PLANNING:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This stage determines whether the project is technically, financially, and operationally feasible&lt;/li&gt;
&lt;li&gt;The planning phase often produces an initial software requirement specification (SRS) document. The SRS details the software’s functions, required resources, possible risks and project timeline&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;ANALYSIS:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;During the analysis phase, the development team collects and analyzes information on the project’s requirements&lt;/li&gt;
&lt;li&gt;At the end of the analysis phase, project managers and development teams fully understand the scope of the project, its functional and technical specifications and how to organize project tasks and workflows&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;DESIGN:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In this phase the requirement is converted to blueprint format to determine how the software flow is going to be. this involves High-Level Design (HLD) and Low-Level Design (LLD)&lt;/li&gt;
&lt;li&gt;Design phase work is collected in a software design document (SDD), which is passed on to developers as a roadmap to use while coding&lt;/li&gt;
&lt;li&gt;HLD - Defines system architecture, technology stack, database design, and major modules&lt;/li&gt;
&lt;li&gt;LLD - Specifies component logic, APIs, data structures, and workflows&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;CODING:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In this phase developers starts to code based on the SRS and SDD which determines the coding language, integrate modules, server connection, API calls, UI are developed in this phase, often UNIT testing is also performed by developers at this stage&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;TESTING:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This phase comes after the development phase once the software becomes functional, based on the SRS the testing will be conducted and ensured if the developed software meet its expected result&lt;/li&gt;
&lt;li&gt;Manual Testing and Automation Testing are performed during this phase&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;DEPLOYMENT:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In this phase the developed software is deployed into the server and made available for the users&lt;/li&gt;
&lt;li&gt;Developers might deploy software in phases—such as a beta release, where a limited group of users tests an early version of the software—before releasing it to the public&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;MAINTANANCE:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Post-deployment support to ensures long-term usability&lt;/li&gt;
&lt;li&gt;Bug fixes, performance tuning, updates, feature enhancements are the features of Maintanance phase&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;SDLC MODELS:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Waterfall Model&lt;/li&gt;
&lt;li&gt;Agile Model&lt;/li&gt;
&lt;li&gt;V-Model&lt;/li&gt;
&lt;li&gt;Spiral Model&lt;/li&gt;
&lt;li&gt;Incremental Model&lt;/li&gt;
&lt;li&gt;RAD Model&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;WATERFALL MODEL&lt;/strong&gt;:&lt;br&gt;
It is a linear and sequential software development model&lt;br&gt;
To forward or move to next stage previous stage must be completed&lt;br&gt;
This provide structured and predictable process that works for well defined requirement &lt;br&gt;
But this model is not very flexible as it does not allow backtracking and permits only minimal changes once a phase is completed&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;V-MODEL&lt;/strong&gt;:&lt;br&gt;
It is a method that includes testing and validation alongside each development phase. It creates a structure like the letter 'V'&lt;br&gt;
This is also called as modified waterfall model and verification and validation model. In each phase of the SDLC has its own accompanying testing phase&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AGILE&lt;/strong&gt;:&lt;br&gt;
The agile model runs on continuous improvement and development cycles—often called "sprints"-in which developers regularly make and release small, incremental changes&lt;br&gt;
It is responsive to changing requests or requirements, enabling teams to more easily identify issues during the development process&lt;br&gt;
It is more commonly used model in current SLDC&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Software Testing</title>
      <dc:creator>Sivakumar Mathiyalagan</dc:creator>
      <pubDate>Mon, 13 Apr 2026 07:46:23 +0000</pubDate>
      <link>https://forem.com/sivakumar_mathiyalagan_/software-testing-3ho4</link>
      <guid>https://forem.com/sivakumar_mathiyalagan_/software-testing-3ho4</guid>
      <description>&lt;p&gt;WHAT IS SOFTWARE TESTING ?&lt;br&gt;
It is a process of evaluating the software that is developed and ensuring that it meets the client requirement&lt;br&gt;
It involves &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Identifying bugs&lt;/li&gt;
&lt;li&gt;fixing errors&lt;/li&gt;
&lt;li&gt;Missed client Requirement&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;TYPES OF SOFTWARE TESTING ?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Manual Testing&lt;/li&gt;
&lt;li&gt;Automation Testing&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;WHAT IS MANUAL TESTING ?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In Manual testing the test cases are executed by person and not by automation tools. Tester verify the test case scenarios and compare the test result with the expected result&lt;/li&gt;
&lt;li&gt;It is a hands on approach to test a software and person involved in testing finds the bug and errors(user like approach)&lt;/li&gt;
&lt;li&gt;Every new application must be manually tested before its testing can be automated&lt;/li&gt;
&lt;li&gt;Unlike automated testing, manual testing relies on predefined test cases and can be time-consuming and prone to human error&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;WHAT IS AUTOMATION TESTING ?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In Automated testing user writes test cases in script format and executes those test cases using some automation tools. It allows to execute repetitive task without requiring manual support&lt;/li&gt;
&lt;li&gt;It is more reliable than manual testing&lt;/li&gt;
&lt;li&gt;compared to manual testing it is less time consuming and less human error&lt;/li&gt;
&lt;li&gt;some popular automation tools are&lt;/li&gt;
&lt;li&gt;Selenium&lt;/li&gt;
&lt;li&gt;QTP(Quick Test Professional)&lt;/li&gt;
&lt;li&gt;Sikuli&lt;/li&gt;
&lt;li&gt;Appium&lt;/li&gt;
&lt;li&gt;Jmeter&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;TYPES OF MANUAL TESTING ?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;White Box Testing&lt;/li&gt;
&lt;li&gt;Black Box Testing&lt;/li&gt;
&lt;li&gt;Grey Box Testing&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;BLACK BOX TESTING:&lt;br&gt;
Checks functionality without knowing internal code. It focuses only on inputs and expected outputs.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No knowledge of code required&lt;/li&gt;
&lt;li&gt;Based on requirements and user perspective&lt;/li&gt;
&lt;li&gt;Used for functional testing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;WHITE BOX TESTING:&lt;br&gt;
Involves testing with knowledge of internal code structure. It focuses on logic, conditions, and code paths.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Requires programming knowledge&lt;/li&gt;
&lt;li&gt;Tests loops, conditions, and branches&lt;/li&gt;
&lt;li&gt;Ensures code correctness and coverage&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GREY BOX TESTING:&lt;br&gt;
This is a combination of both white box and black box tesing, tester need to perform function test and also need to have coding knowledge to check the internal structure. if some test case fails tester will then make some changes in coding part&lt;/p&gt;

&lt;p&gt;NOTE:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Smoke Testing&lt;/li&gt;
&lt;li&gt;Sanity Testing&lt;/li&gt;
&lt;li&gt;Regression Testing&lt;/li&gt;
&lt;li&gt;Acceptance Testing are also some testing techniques available&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;WHAT IS FUNCTIONAL AND NON-FUNCTIONAL TESTING ?&lt;/p&gt;

&lt;p&gt;FUNCTIONAL TESTING:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This type of testing checks the each functionality of the software with different test inputs and verify the output with the expected output &lt;/li&gt;
&lt;li&gt;This testing is not concerned with the source code of the application &lt;/li&gt;
&lt;li&gt;This testing focuses on checking the user interface, APIs, Database, Security, Client or Server Application, and functionality of the Application Under Test.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;WHAT IS NON-FUNCTIONAL TESTING ?&lt;br&gt;
This type of testing verify if the performance and behaviour of the software is as per requirement &lt;br&gt;
Performance testing: checks how the software handles the numbers of user and sometimes overload to check its scalability and performance &lt;br&gt;
Security testing: checks the various aspects of vulnerability and threats and checks if software is protected from those vulnerabilities &lt;br&gt;
Load testing: This checks if multiple users are access the software at same time and how the software behaves in time to respond or to load data.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Server</title>
      <dc:creator>Sivakumar Mathiyalagan</dc:creator>
      <pubDate>Sat, 11 Apr 2026 16:12:10 +0000</pubDate>
      <link>https://forem.com/sivakumar_mathiyalagan_/server-37h7</link>
      <guid>https://forem.com/sivakumar_mathiyalagan_/server-37h7</guid>
      <description>&lt;p&gt;What is a server?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A server is a hardware device or software that process the request sent by the client through a network and replies or response to them&lt;/li&gt;
&lt;li&gt;Client is a device that sends the request and wait for the response from the server&lt;/li&gt;
&lt;li&gt;Multiple clients can be served by a single server, and a single client can use multiple servers.&lt;/li&gt;
&lt;li&gt;These machines run on a &lt;strong&gt;client-server model&lt;/strong&gt;, where clients request specific services or resources, and the server fulfills these requests.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;client-server model is not the only model but most commonly used&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Peer-to-Peer (P2P) Model&lt;/li&gt;
&lt;li&gt;Distributed Systems&lt;/li&gt;
&lt;li&gt;Microservices Architecture&lt;/li&gt;
&lt;li&gt;Serverless Architecture&lt;/li&gt;
&lt;li&gt;Hybrid Models
are some of the other server models&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What does a server do?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data storage and retrieval&lt;/strong&gt;&lt;br&gt;
One of the primary function of server is to store and manage data&lt;br&gt;
data of anytype like documents, media files most common response format is JSON(JavaScript Object Notation)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Website hosting&lt;/strong&gt;&lt;br&gt;
When you browse the internet, the web pages you access are typically hosted on web servers. These servers store the website’s files and deliver them to your web browser when you request a page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Email services&lt;/strong&gt;&lt;br&gt;
Email servers manage the flow of electronic messages. They receive, store, and distribute emails to their intended recipients. Additionally, they handle tasks such as spam filtering and user authentication.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Application hosting&lt;/strong&gt;&lt;br&gt;
Many applications and software services are hosted on servers rather than running on individual devices. These servers provide the necessary computing power and resources to run applications&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;File sharing&lt;/strong&gt;&lt;br&gt;
Stores and lets users share files over a network, Authorization can be implemented to avoid breach of sensitive data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Database Server&lt;/strong&gt;&lt;br&gt;
Provides database access and handles queries&lt;br&gt;
following are some database servers&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;MySQL&lt;/li&gt;
&lt;li&gt;PostgreSQL&lt;/li&gt;
&lt;li&gt;Oracle Database&lt;/li&gt;
&lt;li&gt;Microsoft SQL Server&lt;/li&gt;
&lt;li&gt;MongoDB&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Game Server&lt;/strong&gt;&lt;br&gt;
Hosts online multiplayer games and syncs game data between players&lt;/p&gt;

&lt;p&gt;Why are servers important?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Without server internet might be of no use because server plays the major role in shaping how we communicate, access information, conduct business, and store data.&lt;/li&gt;
&lt;li&gt;Every websites, mobile application, streaming platform, business Application or socail media utilize servers to host, store data, to store media files or even to authenticate users&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Referred in geekforgeeks.org &amp;amp; serverwatch.com&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>beginners</category>
      <category>computerscience</category>
      <category>networking</category>
    </item>
    <item>
      <title>Javascript questionnaire 2</title>
      <dc:creator>Sivakumar Mathiyalagan</dc:creator>
      <pubDate>Sat, 11 Apr 2026 08:57:02 +0000</pubDate>
      <link>https://forem.com/sivakumar_mathiyalagan_/javascript-questionnaire-2-k9j</link>
      <guid>https://forem.com/sivakumar_mathiyalagan_/javascript-questionnaire-2-k9j</guid>
      <description>&lt;p&gt;Different types of operators?&lt;br&gt;
Plus +&lt;br&gt;
Minus -&lt;br&gt;
Increment ++&lt;br&gt;
Decrement --&lt;br&gt;
Multiply *&lt;br&gt;
Exponentiation **&lt;br&gt;
Division /&lt;br&gt;
Modulas %&lt;br&gt;
And &amp;amp;&amp;amp;&lt;br&gt;
OR  ||&lt;br&gt;
Assignment =&lt;br&gt;
Equal to ==&lt;br&gt;
Not ! &lt;br&gt;
strict equality operator ===&lt;br&gt;
+=  x += y  x = x + y&lt;br&gt;
-=  x -= y  x = x - y&lt;br&gt;
&lt;em&gt;=  x *= y  x = x * y&lt;br&gt;
/=  x /= y  x = x / y&lt;br&gt;
%=  x %= y  x = x % y&lt;br&gt;
*&lt;/em&gt;= x *&lt;em&gt;= y x = x *&lt;/em&gt; y&lt;br&gt;
==  equal to    x == 5&lt;br&gt;
=== equal value and equal type  x === 5&lt;br&gt;
!=  not equal   x != 5&lt;br&gt;
!== not equal value or not equal type   x !== 5&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;greater than    x &amp;gt; 5&lt;br&gt;
&amp;lt;   less than   x &amp;lt; 5&lt;br&gt;
=  greater than or equal to    x &amp;gt;= 5&lt;br&gt;
&amp;lt;=  less than or equal to   x &amp;lt;= 5&lt;/p&gt;



&lt;p&gt;Types of loops in js?&lt;br&gt;
While&lt;br&gt;
Do while&lt;br&gt;
For&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Syntax :&lt;br&gt;
While(condition)&lt;br&gt;
{&lt;/p&gt;

&lt;p&gt;(Increment, decrement)&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;do&lt;br&gt;
{&lt;/p&gt;

&lt;p&gt;(Increment, decrement)&lt;br&gt;
} While (condition)&lt;/p&gt;

&lt;p&gt;For(let i=0,i&amp;lt;5,i++){&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;




</description>
    </item>
    <item>
      <title>Basic JavaScript Questionnaires</title>
      <dc:creator>Sivakumar Mathiyalagan</dc:creator>
      <pubDate>Thu, 09 Apr 2026 17:35:23 +0000</pubDate>
      <link>https://forem.com/sivakumar_mathiyalagan_/basic-javascript-questionnaires-e6l</link>
      <guid>https://forem.com/sivakumar_mathiyalagan_/basic-javascript-questionnaires-e6l</guid>
      <description>&lt;p&gt;What is JavaScript?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is a High-level programming Language&lt;/li&gt;
&lt;li&gt;Used to make webpages dynamic&lt;/li&gt;
&lt;li&gt;It is a scripting language&lt;/li&gt;
&lt;li&gt;It is Single threaded&lt;/li&gt;
&lt;li&gt;It follows OOPs concept (Object-Oriented Programming)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;High-level programming Language&lt;br&gt;
 A high-level programming language is a user-friendly, abstracted language  designed for ease of use, enabling developers to write code in human-readable syntax&lt;/p&gt;

&lt;p&gt;Used to make webpages dynamic&lt;br&gt;
 Normal a webpage with only HTML and CSS is of no use. In order to perform some operations or to make it interactive for the user, JavaScript need to be implemented along with HTML and CSS.&lt;/p&gt;

&lt;p&gt;Scripting language&lt;br&gt;
A scripting language is a programming language designed to automate the execution of tasks that would otherwise be executed one by one by a human operator&lt;br&gt;
key features of scripting languages&lt;br&gt;
Interpreted Execution: Scripting languages are typically interpreted rather than compiled.&lt;br&gt;
(The code is executed line by line at runtime by a program called an interpreter, instead of being converted into a separate machine code file beforehand.)&lt;br&gt;
Ease of Use: Scripting languages have simpler syntax, making them easier to learn, especially for beginners.&lt;br&gt;
Dynamic Typing: Variables are typed at runtime, allowing more flexibility during execution.&lt;br&gt;
Integration: Scripting languages are used to automate tasks by connecting and controlling different programs or system components.&lt;br&gt;
High-Level Abstractions: They offer high-level features that simplify interaction with systems and applications.&lt;/p&gt;

&lt;p&gt;Single threaded&lt;br&gt;
JavaScript is a single-threaded language, meaning that it executes one operation at a time on a single thread. This characteristic is often misunderstood as a limitation, but JavaScript can still be non-blocking, which enables it to handle &lt;strong&gt;asynchronous operations&lt;/strong&gt;(TBD) like reading from a file, fetching data from an API, or waiting for user input without blocking the main thread.&lt;/p&gt;

&lt;p&gt;OOPs concept&lt;br&gt;
features of Object-Oriented Programming&lt;br&gt;
Encapsulation (TBD)&lt;br&gt;
Abstraction (TBD)&lt;br&gt;
Inheritance (TBD)&lt;br&gt;
Polymorphism (TBD)&lt;/p&gt;



&lt;p&gt;What are DataTypes?&lt;/p&gt;

&lt;p&gt;Two types&lt;br&gt;
Primitive and Non-Primitive&lt;/p&gt;

&lt;p&gt;Primitive DataTypes&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;String&lt;/li&gt;
&lt;li&gt;Number&lt;/li&gt;
&lt;li&gt;Boolean&lt;/li&gt;
&lt;li&gt;BigInt&lt;/li&gt;
&lt;li&gt;Symbol&lt;/li&gt;
&lt;li&gt;Null&lt;/li&gt;
&lt;li&gt;Undefined&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Non-Primitive&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Object&lt;/li&gt;
&lt;li&gt;Array&lt;/li&gt;
&lt;li&gt;Functions&lt;/li&gt;
&lt;li&gt;Date(TBD)&lt;/li&gt;
&lt;li&gt;RegExp(TBD)&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Primitive Data Types&lt;/th&gt;
&lt;th&gt;Non-Primitive Data Types&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mutability&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Values are &lt;strong&gt;immutable&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Values are &lt;strong&gt;mutable&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Data Complexity&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Stores &lt;strong&gt;single, simple values&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Stores &lt;strong&gt;complex or collection of values&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Memory Storage&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Stored by &lt;strong&gt;value&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Stored by &lt;strong&gt;reference&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Comparison&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Compared by &lt;strong&gt;value&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Compared by &lt;strong&gt;reference&lt;/strong&gt; (two different objects are never equal even if content is same)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Memory Location&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Stored in &lt;strong&gt;stack memory&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Stored in &lt;strong&gt;heap memory&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;p&gt;How to declare a variable?&lt;br&gt;
  Can be declared in four ways&lt;/p&gt;

&lt;p&gt;Automatically without any keyword(not recommended)&lt;br&gt;
Using var keyword(not recommended)&lt;br&gt;
Using const keyword(recommended)&lt;br&gt;
Using let keyword(recommended)&lt;/p&gt;

&lt;p&gt;Automatically without any keyword&lt;br&gt;
 This allows to declare the same variable again and again which might lead to error so it is not recommended&lt;/p&gt;

&lt;p&gt;Using var keyword&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This was used till 2015 but it is also not recommended because this will also allow to initialize the same variable again and again&lt;/li&gt;
&lt;li&gt; It is function scoped and doesnot provide block scope&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;const keyword&lt;br&gt;
 This is recommended if the value will not be changed in the future because if a variable is initialized with const key word then its value cannot be changed &lt;/p&gt;

&lt;p&gt;let keyword&lt;br&gt;
 This is recommended if the value will be changed in the future &lt;/p&gt;
&lt;h2&gt;
  
  
   this provide block level scope for the variable unlike var
&lt;/h2&gt;

&lt;p&gt;referrenced : &lt;a href="https://www.w3schools.com/" rel="noopener noreferrer"&gt;https://www.w3schools.com/&lt;/a&gt;&lt;br&gt;
              &lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://www.geeksforgeeks.org/" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia.geeksforgeeks.org%2Fwp-content%2Fcdn-uploads%2Fgfg_200x200-min.png" height="200" class="m-0" width="200"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://www.geeksforgeeks.org/" rel="noopener noreferrer" class="c-link"&gt;
            GeeksforGeeks | Your All-in-One Learning Portal
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Your All-in-One Learning Portal. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia.geeksforgeeks.org%2Fwp-content%2Fcdn-uploads%2Fgfg_favicon.png" width="32" height="32"&gt;
          geeksforgeeks.org
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Basic Methods in Array</title>
      <dc:creator>Sivakumar Mathiyalagan</dc:creator>
      <pubDate>Wed, 08 Apr 2026 16:02:20 +0000</pubDate>
      <link>https://forem.com/sivakumar_mathiyalagan_/basic-methods-in-array-3f63</link>
      <guid>https://forem.com/sivakumar_mathiyalagan_/basic-methods-in-array-3f63</guid>
      <description>&lt;ol&gt;
&lt;li&gt;Array.length
This Method is used to find the length of the given array,its return type is number&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;const days = ["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]&lt;/p&gt;

&lt;p&gt;let size = days.length // output : 7&lt;/p&gt;

&lt;p&gt;2.Array.toString()&lt;br&gt;
This Method returns the entire array as a coma seperated string, return type string&lt;/p&gt;

&lt;p&gt;const days = ["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]&lt;/p&gt;

&lt;p&gt;let size = days.toString() // output :sunday,monday,tuesday,wednesday,thursday,friday,saturday&lt;/p&gt;

&lt;p&gt;3.Array at()&lt;br&gt;
This Method returns the value of the specified index inside the braces,&lt;br&gt;
return type depends on the value on that index&lt;/p&gt;

&lt;p&gt;const days = ["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]&lt;/p&gt;

&lt;p&gt;let day = days.at(2) // output : tuesday&lt;/p&gt;

&lt;p&gt;4.Array join()&lt;br&gt;
This Method joins the array with specified character inside the braces, return type is string&lt;/p&gt;

&lt;p&gt;const days = ["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]&lt;/p&gt;

&lt;p&gt;let week = days.join("-") // output : sunday-monday-tuesday-wednesday-thursday-friday-saturday&lt;/p&gt;

&lt;p&gt;5.Array pop()&lt;br&gt;
This Method is used to pop the last element from the array&lt;/p&gt;

&lt;p&gt;const days = ["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]&lt;/p&gt;

&lt;p&gt;let week = days.pop() // output : sunday,monday,tuesday,wednesday,thursday,friday&lt;/p&gt;

&lt;p&gt;6.Array push()&lt;br&gt;
This method adds a new element to an array at the end&lt;/p&gt;

&lt;p&gt;const days = ["sunday","monday","tuesday","wednesday","thursday","friday"]&lt;br&gt;
let week = days.push("saturday") // output : sunday,monday,tuesday,wednesday,thursday,friday,saturday&lt;/p&gt;

&lt;p&gt;7.Array shift()&lt;br&gt;
This method removes the first array element and "shifts" all other elements to a lower index&lt;/p&gt;

&lt;p&gt;const days = ["sunday","monday","tuesday","wednesday","thursday","friday"]&lt;br&gt;
let week = days.shift() // output : monday,tuesday,wednesday,thursday,friday,saturday&lt;/p&gt;

&lt;p&gt;8.Array unshift()&lt;br&gt;
This method adds a new element to an array (at the beginning), and "unshifts" older elements&lt;/p&gt;

&lt;p&gt;const days = ["monday","tuesday","wednesday","thursday","friday"]&lt;br&gt;
let week = days.unshift("sunday") // output : sunday,monday,tuesday,wednesday,thursday,friday,saturday&lt;/p&gt;

&lt;p&gt;9.Array.isArray()&lt;br&gt;
This Method checks if the variable given inside its braces is actually an array or not, return type boolean&lt;/p&gt;

&lt;p&gt;const days = ["monday","tuesday","wednesday","thursday","friday"]&lt;br&gt;
let check = Array.isArray(days) // output : true&lt;/p&gt;

&lt;p&gt;10.Array delete()&lt;br&gt;
This Method deletes the given index inside the array but leave its position undefined, its is not highly recommended&lt;/p&gt;

&lt;p&gt;const days = ["monday","tuesday","wednesday","thursday","friday"]&lt;br&gt;
delete days[2];&lt;br&gt;
console.log(days); // output ['monday', 'tuesday', empty, 'thursday', 'friday']&lt;/p&gt;

&lt;p&gt;11.Array concat()&lt;br&gt;
This method creates a new array by merging (concatenating) existing arrays&lt;/p&gt;

&lt;p&gt;const days = ["monday","tuesday","wednesday"]&lt;br&gt;
const nextDays = ["thursday","friday"]&lt;/p&gt;

&lt;p&gt;const week = nextDays.concat(days);&lt;br&gt;
output : thursday,friday,monday,tuesday,wednesday&lt;/p&gt;

&lt;p&gt;12.Array copyWithin()&lt;br&gt;
method copies array elements to another position in an array&lt;/p&gt;

&lt;p&gt;const days = ["monday","tuesday","wednesday","thursday","friday"]&lt;br&gt;
let week = days.copyWithin(2,0)&lt;br&gt;
output :'monday', 'tuesday', 'monday', 'tuesday', 'wednesday'&lt;/p&gt;

&lt;p&gt;13.Array flat()&lt;br&gt;
This method creates a new array with sub-array elements concatenated to a specified depth&lt;br&gt;
const days = [["monday","tuesday"],["wednesday","thursday"],"friday"]&lt;br&gt;
let week = days.flat(); output : ["monday","tuesday","wednesday","thursday","friday"]&lt;/p&gt;

&lt;p&gt;14.Array slice()&lt;br&gt;
This method slices out a piece of an array into a new array by the given index&lt;/p&gt;

&lt;p&gt;const days = ["monday","tuesday","wednesday","thursday","friday"]&lt;br&gt;
let week = days.slice(2);// output : 'wednesday', 'thursday', 'friday'&lt;/p&gt;

&lt;p&gt;15.Array splice()&lt;br&gt;
This method can be used to add new items to an array at the given index&lt;/p&gt;

&lt;p&gt;const days = ["monday","tuesday","wednesday","thursday","friday"]&lt;br&gt;
days.splice(5,0,"saturday")// output : 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'&lt;/p&gt;

&lt;p&gt;16.Array toSpliced()&lt;br&gt;
The difference between the new toSpliced() method and the old splice() method is that the new method creates a new array, keeping the original array unchanged, while the old method altered the original array&lt;/p&gt;

&lt;p&gt;const days = ["monday","tuesday","wednesday","thursday","friday"]&lt;br&gt;
let week = days.toSpliced(0,1); output : 'tuesday', 'wednesday', 'thursday', 'friday'&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Constructor function</title>
      <dc:creator>Sivakumar Mathiyalagan</dc:creator>
      <pubDate>Wed, 08 Apr 2026 08:03:09 +0000</pubDate>
      <link>https://forem.com/sivakumar_mathiyalagan_/constructor-function-1pi5</link>
      <guid>https://forem.com/sivakumar_mathiyalagan_/constructor-function-1pi5</guid>
      <description>&lt;p&gt;Definition:&lt;br&gt;
  It provides a model to create an object instead of declaring the same variable again and again to create multiple objects&lt;/p&gt;

&lt;p&gt;consider a class with 50 number of students each student has same properties like name, roll no, age, etc. for each student we have to create an object with same details so instead of declaring each object again and again. we can declare a constructor function with required properties and create object using that constructor&lt;/p&gt;

&lt;p&gt;to declare a constructor function the variable name should start with uppercare&lt;/p&gt;

&lt;p&gt;function Student(name, rollNo, age){&lt;br&gt;
this.name=name;&lt;br&gt;
this.rollNo=rollNo;&lt;br&gt;
this.age= age;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;const student1= new Student("Akash", 214222002, 15);&lt;br&gt;
const student2= new Student("Mohan", 214222005, 16);&lt;br&gt;
const student3= new Student("Deva", 214222007, 15);&lt;/p&gt;

&lt;p&gt;by this we can create n number of student object using this constructor function &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Objects in Javascript</title>
      <dc:creator>Sivakumar Mathiyalagan</dc:creator>
      <pubDate>Mon, 06 Apr 2026 15:07:36 +0000</pubDate>
      <link>https://forem.com/sivakumar_mathiyalagan_/objects-in-javascript-2p1e</link>
      <guid>https://forem.com/sivakumar_mathiyalagan_/objects-in-javascript-2p1e</guid>
      <description>&lt;p&gt;Object is one of the most important datatype in javascript(as Js is an object oriented programming).It is a non-primitive datatype.&lt;/p&gt;

&lt;p&gt;object has properties and behaviour. property are variables that describe the object and behavior are methods that perform some activity or tasks&lt;/p&gt;

&lt;p&gt;for example : consider object called student&lt;/p&gt;

&lt;p&gt;const Student = {&lt;br&gt;
       name: "xyz",&lt;br&gt;
       roll: 123,&lt;br&gt;
        age:  **,&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  marks: function(sub1,sub2,sub3){
   return sub1+sub2+sub3;
   }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;};&lt;/p&gt;

&lt;p&gt;In this syntax,&lt;br&gt;
     name,roll,age are properties of student and marks is a function that&lt;br&gt;
    calculate the total marks the student acquired in exams.&lt;/p&gt;

&lt;p&gt;To print the properties,&lt;br&gt;
    console.log(Student.name);&lt;br&gt;
    output: xyz.&lt;/p&gt;

&lt;p&gt;Student is the object and name is the key through which value is picked and printed in console log&lt;/p&gt;

&lt;p&gt;To run the function,&lt;br&gt;
    console.log(Student.marks(80,70,90));&lt;br&gt;
    output: 240.&lt;/p&gt;

&lt;p&gt;in here marks is the key through which the function is called.&lt;/p&gt;

&lt;p&gt;Nested object:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;which means object inside an object, this is possible as object property may contain one or more nested object inside it to describe its properties and functionality
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;const Yamaha = {&lt;br&gt;
     founded : 1887,&lt;br&gt;
     origin : "Japan",&lt;br&gt;
     products : {&lt;br&gt;
       bikes : {&lt;br&gt;
       name : "XSR",&lt;br&gt;
       cc   : 155,&lt;br&gt;
      fuel  : "petrol"&lt;br&gt;
       },&lt;br&gt;
       pianos:{&lt;br&gt;
        name :"ARIUS",&lt;br&gt;
        variant: "YDP-165" &lt;br&gt;
       }&lt;br&gt;
      },&lt;br&gt;
     driving: function(){&lt;br&gt;
     console.log("driving a vehicle of yamaha");&lt;br&gt;
     }&lt;br&gt;
};  &lt;/p&gt;

&lt;p&gt;In this Yamaha object following are nested objects&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;bikes&lt;/li&gt;
&lt;li&gt;pianos&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;way to get the values of nested objects &lt;br&gt;
console.log(Yamaha.founded); output = 1887&lt;br&gt;
console.log(Yamaha.products.bikes.name); output = XSR&lt;br&gt;
console.log(Yamaha.products.pianos.variant); output = YDP-165&lt;/p&gt;

&lt;p&gt;(TBD) this keyword in object and Object Constructor Functions&lt;/p&gt;

&lt;p&gt;referrence:&lt;a href="https://www.w3schools.com/js/js_objects.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/js/js_objects.asp&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>functions in Javascript</title>
      <dc:creator>Sivakumar Mathiyalagan</dc:creator>
      <pubDate>Fri, 03 Apr 2026 17:42:38 +0000</pubDate>
      <link>https://forem.com/sivakumar_mathiyalagan_/functions-in-javascript-5b17</link>
      <guid>https://forem.com/sivakumar_mathiyalagan_/functions-in-javascript-5b17</guid>
      <description>&lt;p&gt;functions in Javascript helps to develope reuseable code&lt;br&gt;
Meaning - Instead of writing the same code again and again we can use function to reuse the code as number of times required&lt;/p&gt;

&lt;p&gt;Syntax:&lt;br&gt;
   function calcAdd(num1,num2){&lt;br&gt;
      let total = num1+num2;&lt;br&gt;
      return total;&lt;br&gt;
}&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;function&lt;/em&gt; is the keyword referring that we are writing a function&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;calcAdd&lt;/em&gt; is the name given to the function&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;num1&lt;/em&gt; and &lt;em&gt;num2&lt;/em&gt; are the parameters passed inside the function to execute addition operation&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;return&lt;/em&gt; is the keyword used to return the output once the function is called&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Execution:&lt;br&gt;
let output = caclAdd(20,35);&lt;br&gt;
console.log(output)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Once the function is called &lt;em&gt;20 and 35&lt;/em&gt; are the arguments that takes the places of parameters &lt;em&gt;num1 and num2&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;perform addition operation and store the value 55 in the variable total&lt;/li&gt;
&lt;li&gt;As we have returned the value it will now be stored in the output variable&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Points to remember:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;funtion can be declared with any number of parameters.&lt;/li&gt;
&lt;li&gt;unlike Java, Javascript executes even if the arguments are not passed           or passed with incorrect number of arguments.&lt;/li&gt;
&lt;li&gt;return keyword should be used only at the end of the function before the closing parenthesis&lt;/li&gt;
&lt;li&gt;If return keyword were to be used in the middle of the function then the remaining code will simply be skipped &lt;/li&gt;
&lt;li&gt;If a variable is declared inside a function it can't be accessed outside the function 
for example in the syntax a variable total has been declared inside the function, it cannot be accessed outside 
 if the total variable to be put in a console log outside the function 
output will be "ReferenceError: total is not defined"
   this makes return keyword handy to get the value from total variable to outerscope &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;TBD&lt;/strong&gt; (number of Ways to declare a function and the purpose of doing so)&lt;/p&gt;

&lt;p&gt;REFERRED IN MDN&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
