<?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: subash</title>
    <description>The latest articles on Forem by subash (@subash_4870e66d76ac024544).</description>
    <link>https://forem.com/subash_4870e66d76ac024544</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%2F3771264%2F4f73ae4d-34e7-45a7-9f86-cd525bfd5c50.png</url>
      <title>Forem: subash</title>
      <link>https://forem.com/subash_4870e66d76ac024544</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/subash_4870e66d76ac024544"/>
    <language>en</language>
    <item>
      <title>what is react</title>
      <dc:creator>subash</dc:creator>
      <pubDate>Fri, 15 May 2026 08:53:39 +0000</pubDate>
      <link>https://forem.com/subash_4870e66d76ac024544/what-is-react-2dmi</link>
      <guid>https://forem.com/subash_4870e66d76ac024544/what-is-react-2dmi</guid>
      <description>&lt;h1&gt;
  
  
  React
&lt;/h1&gt;

&lt;p&gt;React is used to make single and responsive html web pages,&lt;br&gt;
it's kind of replacement of dom framework.&lt;/p&gt;

&lt;h1&gt;
  
  
  JSX(Java Script Xml)
&lt;/h1&gt;

&lt;p&gt;It is used to write html code in javascirpt&lt;/p&gt;

</description>
    </item>
    <item>
      <title>this is for to change old version node and curl install</title>
      <dc:creator>subash</dc:creator>
      <pubDate>Wed, 13 May 2026 10:20:20 +0000</pubDate>
      <link>https://forem.com/subash_4870e66d76ac024544/this-is-for-to-change-old-version-node-and-curl-install-1deh</link>
      <guid>https://forem.com/subash_4870e66d76ac024544/this-is-for-to-change-old-version-node-and-curl-install-1deh</guid>
      <description>&lt;p&gt;The problem is curl is not installed, so the NVM installation never happened.&lt;br&gt;
That is why:&lt;br&gt;
nvm: command not found&lt;br&gt;
appears.&lt;/p&gt;

&lt;p&gt;Fix Step-by-Step&lt;br&gt;
Step 1 — Install curl&lt;br&gt;
Run:&lt;br&gt;
sudo apt update&lt;br&gt;
Then:&lt;br&gt;
sudo apt install curl&lt;br&gt;
Type your password if asked.&lt;/p&gt;

&lt;p&gt;Step 2 — Install NVM Again&lt;br&gt;
Now run:&lt;br&gt;
curl -o- &lt;a href="https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh" rel="noopener noreferrer"&gt;https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh&lt;/a&gt; | bash&lt;/p&gt;

&lt;p&gt;Step 3 — Reload Bash&lt;br&gt;
Run:&lt;br&gt;
source ~/.bashrc&lt;/p&gt;

&lt;p&gt;Step 4 — Check NVM&lt;br&gt;
Run:&lt;br&gt;
nvm --version&lt;br&gt;
If installed correctly, it shows something like:&lt;br&gt;
0.39.7&lt;/p&gt;

&lt;p&gt;Step 5 — Install Latest Node.js&lt;br&gt;
Run:&lt;br&gt;
nvm install node&lt;/p&gt;

&lt;p&gt;Step 6 — Verify&lt;br&gt;
node -v&lt;br&gt;
You should see:&lt;br&gt;
v20.x.x&lt;br&gt;
or newer.&lt;/p&gt;

&lt;p&gt;Step 7 — Create Vite App&lt;br&gt;
Now finally:&lt;br&gt;
npm create vite@latest&lt;br&gt;
This should work correctly now.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>linux</category>
      <category>node</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>#PROMISE</title>
      <dc:creator>subash</dc:creator>
      <pubDate>Fri, 08 May 2026 06:18:37 +0000</pubDate>
      <link>https://forem.com/subash_4870e66d76ac024544/promise-2jm7</link>
      <guid>https://forem.com/subash_4870e66d76ac024544/promise-2jm7</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;promise&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;rej&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nf"&gt;rej&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="p"&gt;});&lt;/span&gt;

        &lt;span class="nx"&gt;promise&lt;/span&gt;
          &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;done&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
          &lt;span class="p"&gt;})&lt;/span&gt;
          &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;

            &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;error&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
          &lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fdxp487pqwygx3qggjlxw.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%2Fdxp487pqwygx3qggjlxw.png" alt=" " width="480" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this case we have promise in promise variable, new is key word, default promise have two aruguments which is resolve and reject. this case we call res() so then it will go to then , if we call rej() then it will go catch. &lt;/p&gt;

&lt;p&gt;2.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;

        &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;Analysis&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
            &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;analysisPromise&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;rej&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nf"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;analysis completed&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                    &lt;span class="nf"&gt;res&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
                &lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="mi"&gt;4000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;})&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;analysisPromise&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;Design&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
            &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;designPromise&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;rej&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nf"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;design completed&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                     &lt;span class="nf"&gt;res&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
                &lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="mi"&gt;9000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;})&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;designPromise&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;Development&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
            &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;developmentPromise&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;rej&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nf"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Development completed&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                     &lt;span class="nf"&gt;res&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
                &lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="mi"&gt;4000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;})&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;developmentPromise&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;Testing&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
            &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;testingPromise&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;rej&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nf"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Testing completed&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                     &lt;span class="nf"&gt;res&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
                &lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="mi"&gt;4000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;})&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;testingPromise&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;Deployment&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
            &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;deploymentPromise&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;rej&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nf"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Deployment completed&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                     &lt;span class="nf"&gt;rej&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
                &lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="mi"&gt;4000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;})&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;deploymentPromise&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;



        &lt;span class="nc"&gt;Analysis&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

             &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;Design&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
             &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;Development&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
             &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;Testing&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
             &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;Deployment&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
             &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;error&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fqkpys00r1dyouiym5397.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%2Fqkpys00r1dyouiym5397.png" alt=" " width="480" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;First we created function, inside that function have promise, inside that promise have setTimout, inside that setTimeout we gave console.log and res(). this function is return that promise.&lt;br&gt;
we have diff function with diff names.each settimout have 4sec gap..&lt;/p&gt;

&lt;p&gt;after we callback first functions first one is Analysis() , this function return analysisPromise; setTimout have 4second waiting time and also print analysis completed the gave res(). we use res() then it will going to "then" after that work what inside that then , so we should create then catch syntax.in analysis res() will go to first then that have Design callback , that will return designpromise , it will go like this series upto deployment. if anything rej in between them , after that catch will work. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>What is closure</title>
      <dc:creator>subash</dc:creator>
      <pubDate>Thu, 07 May 2026 05:32:52 +0000</pubDate>
      <link>https://forem.com/subash_4870e66d76ac024544/what-is-closure-32ph</link>
      <guid>https://forem.com/subash_4870e66d76ac024544/what-is-closure-32ph</guid>
      <description>&lt;p&gt;Closure is used to preserve data and create private memory for functions.&lt;br&gt;
“Variables-ஐ பாதுகாப்பாக வைத்துக்கொண்டு, function முடிந்த பிறகும் அவற்றை நினைவில் வைத்திருப்பது.”&lt;/p&gt;

&lt;h1&gt;
  
  
  example
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;bank&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
            &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;min_bal&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;


          &lt;span class="k"&gt;return   &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;amt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
             &lt;span class="nx"&gt;min_bal&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nx"&gt;amt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
               &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`current bal is &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;min_bal&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;account&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;bank&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sdf&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;bank&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;



        &lt;span class="nf"&gt;sdf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
         &lt;span class="nf"&gt;sdf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="nf"&gt;account&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  OUTPUT:
&lt;/h1&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%2F95sudmd9x095hinxt1c8.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%2F95sudmd9x095hinxt1c8.png" alt=" " width="480" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this case bank() is outer function and inner function is in return, which is inside the outer function and min_bal variable also inside the outer function , so outer function return the arrow function , then we put bank() function in  account variable then, &lt;br&gt;
we should call account as a function , like account(300) also we can able to pass aruguments. &lt;/p&gt;

&lt;p&gt;Here i put bank() function in two diff variable, also we can create so many variable , each variable have separated.&lt;br&gt;
min_bal is 500 in sdf add 200 and then again 200 now total amount is 900&lt;br&gt;
min_bal is 500 in account add  now total amount is 900 .&lt;/p&gt;

&lt;p&gt;two variable keep separate value but function is same .&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>TO DO LIST</title>
      <dc:creator>subash</dc:creator>
      <pubDate>Wed, 06 May 2026 07:22:05 +0000</pubDate>
      <link>https://forem.com/subash_4870e66d76ac024544/to-do-list-4jnj</link>
      <guid>https://forem.com/subash_4870e66d76ac024544/to-do-list-4jnj</guid>
      <description>&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%2Fkrkblwodp0d54rbktazw.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%2Fkrkblwodp0d54rbktazw.png" alt=" " width="800" height="663"&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%2Fao9svosuycscv87colhi.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%2Fao9svosuycscv87colhi.png" alt=" " width="480" height="338"&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%2Fg71ph5dqt3i8j19uy5ox.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%2Fg71ph5dqt3i8j19uy5ox.png" alt=" " width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What is DOM</title>
      <dc:creator>subash</dc:creator>
      <pubDate>Tue, 28 Apr 2026 04:28:46 +0000</pubDate>
      <link>https://forem.com/subash_4870e66d76ac024544/what-is-dom-13fd</link>
      <guid>https://forem.com/subash_4870e66d76ac024544/what-is-dom-13fd</guid>
      <description>&lt;p&gt;DOM stands for Document Object Model, which is used to control and modify the content of elements within an HTML document. The DOM allows JavaScript to interact with web pages.&lt;/p&gt;

&lt;p&gt;First in the script, we make one variable, that variable have which element we are going to change, for example:&lt;/p&gt;

&lt;h1 id="title"&gt;Hello&lt;/h1&gt;

&lt;p&gt;const heading = document.getElementById("title");&lt;/p&gt;

&lt;p&gt;document.getElementById("title").innerText = "Hi";&lt;/p&gt;

&lt;p&gt;In this case, we did change the Hello into Hi. " Now, we show only Hi,&lt;/p&gt;

&lt;p&gt;and then, these all are diff to select&lt;/p&gt;

&lt;p&gt;** const items = document.getElementsByClassName("box"); -- this is for to select class&lt;/p&gt;

&lt;p&gt;**const paras = document.getElementsByTagName("p"); -- this to select element&lt;/p&gt;

&lt;p&gt;**document.querySelector(".box");&lt;br&gt;&lt;br&gt;
  document.querySelector("#title");&lt;br&gt;
  document.querySelector("p");-- these document.querySelector only return first matching element&lt;br&gt;
  document.querySelector(".box.active");--Multiple Classes&lt;br&gt;
  document.querySelector("div &amp;gt; p"); -- Child Selector this will select only first p which is direct child of div.&lt;br&gt;
  document.querySelector("div p"); this is same as "div &amp;gt; p"  but it will consider indirect child also ,like nested child.&lt;br&gt;
  document.querySelector("[type='text']");-- attribut selectors&lt;br&gt;
  document.querySelector("input[name='username']"); -- Specific Attribute&lt;/p&gt;

&lt;p&gt;**const allBoxes = document.querySelectorAll(".box"); -- this will select all matching elements&lt;/p&gt;

&lt;p&gt;**&lt;br&gt;
document.querySelector("[class$='box']"); TBD&lt;br&gt;
document.querySelector("[class^='box']");  TBD&lt;br&gt;
document.querySelector("[class*='box']");  TBD&lt;br&gt;
document.querySelector("div:not(.active)"); TBD&lt;br&gt;
document.querySelector("li:first-child");  TBD&lt;br&gt;
document.querySelector("li:last-child"); TBD&lt;br&gt;
document.querySelector("p:nth-of-type(1)");  TBD&lt;br&gt;
document.querySelector("li:nth-child(2)");  TBD&lt;/p&gt;

&lt;p&gt;** This is how to control css &lt;br&gt;
document.querySelector("h1").style.color = "red";&lt;/p&gt;

&lt;p&gt;const el = document.querySelector("#title");&lt;/p&gt;

&lt;p&gt;el.classList.add("active");    // add class&lt;br&gt;
el.classList.remove("active"); // remove class&lt;br&gt;
el.classList.toggle("active"); // toggle class&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>html</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>JavaScript Array Iteration Methods Explained (forEach, map, filter, reduce)</title>
      <dc:creator>subash</dc:creator>
      <pubDate>Thu, 16 Apr 2026 08:46:58 +0000</pubDate>
      <link>https://forem.com/subash_4870e66d76ac024544/javascript-array-iteration-methods-explained-foreach-map-filter-reduce-3b19</link>
      <guid>https://forem.com/subash_4870e66d76ac024544/javascript-array-iteration-methods-explained-foreach-map-filter-reduce-3b19</guid>
      <description>&lt;h1&gt;
  
  
  forEach LOOP
&lt;/h1&gt;

&lt;p&gt;This loop will repeat how long the array length.&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%2Fj6oozv73migu79dnx90l.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%2Fj6oozv73migu79dnx90l.png" alt=" " width="437" height="270"&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%2Fnfxz7gvha42xr1c7qbmf.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%2Fnfxz7gvha42xr1c7qbmf.png" alt=" " width="349" height="106"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this case what was happened is forEach have the argument of 'display' which is function , this will call that display function , that display function have three parameter like display(val,d,s).&lt;/p&gt;

&lt;p&gt;First forEach is one of the inbuilt function that return array val , index number and then entire array , already we gave three parameter(val,d,s). these first parameter is  contain the array value , and second parameter is contain array index number then final parameter have the entire array, &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;forEach(display);
function forEach (arg){
    arg(10,0,1)
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;here what was happened is display is the argument this will stored in arg parameter , and then in this function have arg(10,0,10) arg will consider as display so display(10,0,10) .&lt;br&gt;
 so in this page already display have array value, index number, and then entire array right , in this case we add one more aruguments which is display(10,0,10) so this arugument will add onces array length will complete. &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%2Fnfxz7gvha42xr1c7qbmf.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%2Fnfxz7gvha42xr1c7qbmf.png" alt=" " width="349" height="106"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  map()
&lt;/h1&gt;

&lt;p&gt;It is same like forEach but what the diff is we can return the value in function forEach not return like this &lt;br&gt;
for example;&lt;br&gt;
    const mark = [2,3,3,3];&lt;br&gt;
        const output= mark.map (display);&lt;br&gt;
        function display(val,d,s){&lt;br&gt;
            return val+d&lt;br&gt;
        }&lt;/p&gt;

&lt;p&gt;console.log(output)&lt;/p&gt;

&lt;p&gt;this work in map , but not in forEach, &lt;/p&gt;

&lt;h1&gt;
  
  
  mapFlat()
&lt;/h1&gt;

&lt;h1&gt;
  
  
  References;
&lt;/h1&gt;

&lt;p&gt;1.&lt;a href="https://dev.to/sivakumar_mathiyalagan_/array-iteration-methods-ko4"&gt;https://dev.to/sivakumar_mathiyalagan_/array-iteration-methods-ko4&lt;/a&gt;&lt;br&gt;
2.&lt;a href="https://www.w3schools.com/js/js_array_iteration.asp#mark_map" rel="noopener noreferrer"&gt;https://www.w3schools.com/js/js_array_iteration.asp#mark_map&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>WHAT IS JAVASCRIPT</title>
      <dc:creator>subash</dc:creator>
      <pubDate>Sun, 12 Apr 2026 12:42:59 +0000</pubDate>
      <link>https://forem.com/subash_4870e66d76ac024544/what-is-javascript-21b5</link>
      <guid>https://forem.com/subash_4870e66d76ac024544/what-is-javascript-21b5</guid>
      <description>&lt;p&gt;JavaScript is an essential language for web development. It transforms static web pages into dynamic and interactive experiences. With its simplicity and powerful features, it remains one of the most widely used programming languages today.&lt;/p&gt;

&lt;p&gt;1.JavaScript is a high-level programming language for the Web.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Used to make webpages dynamic
3.It is a scripting language
4.It is Single threaded
5.It follows OOPs concept (Object-Oriented Programming)&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  What the diff between interpreter and compiler
&lt;/h1&gt;

&lt;p&gt;An interpreter means to convert the code line by line into machine code, but compile is convert the entire code into machine code before execution.&lt;/p&gt;

&lt;h1&gt;
  
  
  What is “Compile”?
&lt;/h1&gt;

&lt;p&gt;Convert entire code → machine code (before running)&lt;/p&gt;

&lt;h1&gt;
  
  
  High-Level Programming Language
&lt;/h1&gt;

&lt;p&gt;JavaScript is a high-level language, in order to easy to read and write. Developers don’t need to worry about low-level details like memory management.&lt;br&gt;
Low-level details = the basic internal operations of a computer (like memory, CPU, and binary processing).&lt;/p&gt;

&lt;h1&gt;
  
  
  JavaScript is used to make web pages dynamic.
&lt;/h1&gt;

&lt;p&gt;It allows you to:&lt;br&gt;
Update content without reloading the page&lt;br&gt;
Handle user inputs&lt;br&gt;
Create animations and effects&lt;/p&gt;

&lt;p&gt;Example: Form validation, dropdown menus, live updates&lt;/p&gt;

&lt;h1&gt;
  
  
  Scripting Language
&lt;/h1&gt;

&lt;p&gt;JavaScript is a scripting language, meaning it is executed directly in the browser without needing compilation. It automates tasks and enhances user experience.&lt;br&gt;
JavaScript uses both an interpreter and a JIT compiler.&lt;/p&gt;

&lt;p&gt;Scripting language என்பது compile செய்யாமல் direct ஆக run ஆகும் language. இது automation மற்றும் web interaction க்கு பயன்படுத்தப்படும்.&lt;/p&gt;

&lt;p&gt;Step 1: The interpreter starts executing the code quickly.&lt;br&gt;
Step 2: The JIT compiler observes which parts of the code are executed frequently.&lt;br&gt;
Step 3: Those parts are compiled into machine code.&lt;br&gt;
Step 4: The program runs faster after optimization.&lt;/p&gt;

&lt;p&gt;This combination provides both quick startup and high performance.&lt;/p&gt;

&lt;p&gt;JavaScript is neither purely interpreted nor purely compiled.&lt;/p&gt;

&lt;p&gt;It uses an interpreter to start execution quickly and a JIT compiler to optimize performance during runtime.&lt;/p&gt;

&lt;p&gt;JIT = Just-In-Time Compiler&lt;/p&gt;

&lt;h1&gt;
  
  
  Single-Threaded
&lt;/h1&gt;

&lt;p&gt;JavaScript can do only ONE task at a time.&lt;br&gt;
  But uses event loop to manage multiple tasks&lt;/p&gt;

&lt;p&gt;Event loop only manages tasks&lt;br&gt;
  It does NOT run multiple tasks at the same time&lt;/p&gt;

&lt;h1&gt;
  
  
  Supports Object-Oriented Programming (OOP)
&lt;/h1&gt;

&lt;p&gt;JavaScript follows object-oriented programming concepts. It allows developers to organize code using:&lt;/p&gt;

&lt;p&gt;Objects&lt;br&gt;
Classes--(TBD)&lt;br&gt;
Inheritance--(TBD)&lt;/p&gt;

&lt;p&gt;This helps in writing clean and reusable code.&lt;/p&gt;

&lt;h1&gt;
  
  
  What are DataTypes?
&lt;/h1&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;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1.String
2.Number
3.Boolean
4.BigInt
5.Symbol
6.Null
7.Undefined
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1.Object
2.Array
3.Functions
4.Date(TBD)
5.RegExp(TBD)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fjaobprz44echnunxqve5.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%2Fjaobprz44echnunxqve5.png" alt=" " width="756" height="505"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;#What is Stack?&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%2F3qe2g2vyzzi7bbo90412.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%2F3qe2g2vyzzi7bbo90412.png" alt=" " width="800" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;FILO = First In Last Out&lt;/p&gt;

&lt;p&gt;A simple memory area&lt;br&gt;
 Stores:&lt;br&gt;
  Primitive values (number, string, boolean)&lt;br&gt;
  Function calls&lt;br&gt;
Stack = stores primitive values and function calls (fast, fixed)&lt;/p&gt;

&lt;p&gt;What is Heap?&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%2Flsv71spyg1xaockhm4af.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%2Flsv71spyg1xaockhm4af.png" alt=" " width="800" height="543"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A large memory area&lt;br&gt;
Stores:&lt;/p&gt;

&lt;p&gt;Objects&lt;br&gt;
Arrays&lt;br&gt;
Functions (reference)&lt;/p&gt;

&lt;p&gt;Heap = stores objects and complex data (flexible, slower)&lt;/p&gt;

&lt;p&gt;REFERENCES &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/sivakumar_mathiyalagan_/basic-javascript-questionnaires-e6l"&gt;https://dev.to/sivakumar_mathiyalagan_/basic-javascript-questionnaires-e6l&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>ROUGH WORK</title>
      <dc:creator>subash</dc:creator>
      <pubDate>Fri, 10 Apr 2026 06:39:02 +0000</pubDate>
      <link>https://forem.com/subash_4870e66d76ac024544/rough-work-466m</link>
      <guid>https://forem.com/subash_4870e66d76ac024544/rough-work-466m</guid>
      <description>&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%2Fbr54wvncj1nzr6j7tq9n.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%2Fbr54wvncj1nzr6j7tq9n.png" alt=" " width="800" height="450"&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%2Fvzonk64l1guh15iayyfy.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%2Fvzonk64l1guh15iayyfy.png" alt=" " width="800" height="450"&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%2F17b95rqwsq3gigacgyda.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%2F17b95rqwsq3gigacgyda.png" alt=" " width="800" height="450"&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%2Fz00yy9xgvz948rmipirp.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%2Fz00yy9xgvz948rmipirp.png" alt=" " width="800" height="450"&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%2Fody35pwph49a7hbi2ndr.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%2Fody35pwph49a7hbi2ndr.png" alt=" " width="617" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Invoke = அழைத்து run செய்யுதல் or executed&lt;/p&gt;

&lt;p&gt;Programming Language → Code → Interpreter → (Program running at Runtime) → Output &lt;/p&gt;

&lt;p&gt;✅ Final Clarity&lt;/p&gt;

&lt;p&gt;👉 Interpreter = executes&lt;br&gt;
👉 Runtime = when it executes&lt;br&gt;
👉 Program = code being executed&lt;/p&gt;

&lt;p&gt;what is independent-platform&lt;/p&gt;

&lt;p&gt;“மழை வந்தால் குடை எடுத்துக்கொள்வது exception handling மாதிரி.”&lt;/p&gt;

&lt;p&gt;👉 English: There are some exceptions in this rule.&lt;br&gt;
👉 Tamil: இந்த விதியில் சில விதிவிலக்குகள் உள்ளன.&lt;/p&gt;

&lt;p&gt;🔑 Simple Understanding&lt;/p&gt;

&lt;p&gt;👉 Exception = விதிவிலக்கு (rule-க்கு மாறான ஒன்று)&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%2Fiathl907iody64vwzwnk.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%2Fiathl907iody64vwzwnk.png" alt=" " width="765" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>JavaScript Basic Array Methods Explained for Beginners (Complete Guide)</title>
      <dc:creator>subash</dc:creator>
      <pubDate>Thu, 09 Apr 2026 09:20:49 +0000</pubDate>
      <link>https://forem.com/subash_4870e66d76ac024544/javascript-basic-array-methods-explained-for-beginners-complete-guide-17pa</link>
      <guid>https://forem.com/subash_4870e66d76ac024544/javascript-basic-array-methods-explained-for-beginners-complete-guide-17pa</guid>
      <description>&lt;h2&gt;
  
  
  What are the Array Methods?
&lt;/h2&gt;

&lt;p&gt;Array methods are built-in functions in JavaScript used to perform operations on arrays.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Array length&lt;/li&gt;
&lt;li&gt;Array toString()&lt;/li&gt;
&lt;li&gt;Array at()&lt;/li&gt;
&lt;li&gt;Array join()&lt;/li&gt;
&lt;li&gt;Array pop()&lt;/li&gt;
&lt;li&gt;Array push()&lt;/li&gt;
&lt;li&gt;Array shift()&lt;/li&gt;
&lt;li&gt;Array unshift()&lt;/li&gt;
&lt;li&gt;Array isArray()
10.Array delete()
11.Array concat()
12.Array copyWithin()
13.Array flat()
14.Array slice()
15.Array splice()
16.Array toSpliced()&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  1.Array length;
&lt;/h1&gt;

&lt;p&gt;length is mention the count of element in array &lt;/p&gt;

&lt;p&gt;EXAMPLE:&lt;/p&gt;





&lt;p&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];&lt;br&gt;
fruits.length = 2;&lt;br&gt;
document.getElementById("demo").innerHTML = fruits;&lt;/p&gt;



&lt;p&gt;OUTPUT : Banana,Orange&lt;/p&gt;

&lt;p&gt;EXPLANATION;&lt;br&gt;
In this case fruits.length = 2 is determine how many element will show in output from the first element.&lt;/p&gt;

&lt;p&gt;EXAMPLE2;&lt;/p&gt;






const fruits = ["Banana", "Orange", "Apple", "Mango"];
let size = fruits.length;
document.getElementById("demo").innerHTML = size;



&lt;h1&gt;
  
  
  OUTPUT - 4
&lt;/h1&gt;

&lt;p&gt;EXPLANATION;&lt;/p&gt;

&lt;p&gt;fruits.length is determine the count of the element in array.&lt;/p&gt;

&lt;p&gt;EXAMPLE3;&lt;/p&gt;

&lt;p&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;JavaScript Arrays&lt;/h1&gt;

&lt;h2&gt;Bracket Indexing&lt;/h2&gt;

&lt;p&gt;Array elements are accessed using their index number:&lt;/p&gt;





&lt;p&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];&lt;br&gt;
document.getElementById("demo1").innerHTML = fruits;&lt;br&gt;
fruits[0] = "Kiwi";&lt;br&gt;
document.getElementById("demo2").innerHTML = fruits;&lt;/p&gt;



&lt;p&gt;OUTPUT -- Kiwi,Orange,Apple,Mango&lt;/p&gt;

&lt;p&gt;EXAMPLE4&lt;/p&gt;

&lt;p&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;JavaScript Arrays&lt;/h1&gt;

&lt;h2&gt;The length Property&lt;/h2&gt;

&lt;p&gt;The length property provides an easy way to append new elements to an array without using the push() method:&lt;/p&gt;





&lt;p&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];&lt;br&gt;
document.getElementById("demo1").innerHTML = fruits;&lt;br&gt;
fruits[fruits.length] = "Kiwi";&lt;br&gt;
document.getElementById("demo2").innerHTML = fruits;&lt;/p&gt;



&lt;p&gt;OUTPUT - Banana,Orange,Apple,Mango,Kiwi&lt;/p&gt;

&lt;p&gt;2.Array toString()&lt;/p&gt;

&lt;p&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];&lt;/p&gt;

&lt;p&gt;let myList = fruits.toString();&lt;br&gt;
console.log(typeof myList)&lt;br&gt;
console.log(typeof fruits)&lt;/p&gt;

&lt;p&gt;OUTPUT - string&lt;br&gt;
          object&lt;/p&gt;

&lt;p&gt;3.Array at()&lt;/p&gt;

&lt;p&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];&lt;br&gt;
  let fruit = fruits.at(2);&lt;br&gt;
  console.log(fruit);&lt;br&gt;
  console.log(fruits);&lt;/p&gt;

&lt;p&gt;OUTPUT - Apple&lt;br&gt;
          ["Banana", "Orange", "Apple", "Mango"];&lt;/p&gt;

&lt;p&gt;This for if want print any one of in array then we use this methods&lt;/p&gt;

&lt;p&gt;or &lt;/p&gt;

&lt;p&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];&lt;br&gt;
let fruit = fruits[2];&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Array join();&lt;/li&gt;
&lt;/ol&gt;






const fruits = ["Banana", "Orange", "Apple", "Mango"];
document.getElementById("demo").innerHTML = fruits.join(" * ");




&lt;p&gt;OUTPUT - Banana*Orange*Apple*Mango&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Array pop()



&lt;/li&gt;
&lt;/ol&gt;


const fruits = ["Banana", "Orange", "Apple", "Mango"];
document.getElementById("demo1").innerHTML = fruits.pop();
document.getElementById("demo2").innerHTML = fruits;




&lt;p&gt;OUTPUT - Mango &lt;br&gt;
         Banana,Orange,Apple&lt;/p&gt;

&lt;p&gt;6.Array push()&lt;/p&gt;



&lt;h1&gt;JavaScript Arrays&lt;/h1&gt; 

&lt;h2&gt;The push() Method&lt;/h2&gt;

&lt;p&gt;The push() method returns the new array length:&lt;/p&gt;





&lt;p&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];&lt;/p&gt;

&lt;p&gt;document.getElementById("demo1").innerHTML = fruits.push("Kiwi");&lt;br&gt;
document.getElementById("demo2").innerHTML = fruits;&lt;/p&gt;



&lt;p&gt;OUTPUT - 5&lt;br&gt;
         Banana,Orange,Apple,Mango,kiwi&lt;/p&gt;

&lt;p&gt;7.Array shift()&lt;/p&gt;

&lt;p&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;JavaScript Arrays&lt;/h1&gt;

&lt;h2&gt;The shift() Method&lt;/h2&gt;

&lt;p&gt;The shift() method returns the element that was shifted out.&lt;/p&gt;





&lt;p&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];&lt;br&gt;
document.getElementById("demo1").innerHTML = fruits.shift();&lt;br&gt;
document.getElementById("demo2").innerHTML = fruits;&lt;/p&gt;



&lt;p&gt;OUTPUT - Banana&lt;br&gt;
         Orange,Apple,Mango&lt;/p&gt;

&lt;p&gt;8.Array unshift()&lt;/p&gt;

&lt;p&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;JavaScript Arrays&lt;/h1&gt; 

&lt;h2&gt;The unshift() Method&lt;/h2&gt;

&lt;p&gt;The unshift() method returns the length of the new array:&lt;/p&gt;





&lt;p&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];&lt;br&gt;
document.getElementById("demo1").innerHTML = fruits.unshift("Lemon");&lt;br&gt;
document.getElementById("demo2").innerHTML = fruits;&lt;/p&gt;



&lt;p&gt;OUTPUT - 5&lt;br&gt;
         Lemon,Banana,Orange,Apple,Mango&lt;/p&gt;

&lt;p&gt;9.Array.isArray()&lt;/p&gt;

&lt;p&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;JavaScript Arrays&lt;/h1&gt;

&lt;h2&gt;The isArray() Method&lt;/h2&gt;



&lt;p&gt;const fruits = ["Banana", "Orange", "Apple"];&lt;br&gt;
document.getElementById("demo").innerHTML = Array.isArray(fruits);&lt;/p&gt;



&lt;p&gt;OUTPUT -- true&lt;/p&gt;

&lt;p&gt;10.Array delete()&lt;/p&gt;

&lt;p&gt;Warning !&lt;/p&gt;

&lt;p&gt;Using delete() leaves undefined holes in the array.&lt;/p&gt;

&lt;p&gt;Use pop() or shift() instead.&lt;/p&gt;

&lt;p&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;JavaScript Arrays&lt;/h1&gt;

&lt;h2&gt;The delete Method&lt;/h2&gt;

&lt;p&gt;Deleting elements leaves undefined holes in an array:&lt;/p&gt;





&lt;p&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];&lt;/p&gt;

&lt;p&gt;document.getElementById("demo1").innerHTML =&lt;br&gt;
"The first fruit is: " + fruits[0];&lt;/p&gt;

&lt;p&gt;delete fruits[0];&lt;/p&gt;

&lt;p&gt;document.getElementById("demo2").innerHTML =&lt;br&gt;
"The first fruit is: " + fruits[0];&lt;/p&gt;



&lt;p&gt;OUTPUT -- The first fruit is: Banana&lt;br&gt;
          The first fruit is: undefined&lt;/p&gt;

&lt;p&gt;11.JavaScript Array concat()&lt;/p&gt;

&lt;p&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;JavaScript Arrays&lt;/h1&gt;

&lt;h2&gt;The concat() Method&lt;/h2&gt;

&lt;p&gt;The concat() method merges (concatenates) arrays:&lt;/p&gt;



&lt;p&gt;const array1 = ["Cecilie", "Lone"];&lt;br&gt;
const array2 = ["Emil", "Tobias", "Linus"];&lt;br&gt;
const array3 = ["Robin", "Morgan"];&lt;/p&gt;

&lt;p&gt;const myChildren = array1.concat(array2, array3); &lt;/p&gt;

&lt;p&gt;document.getElementById("demo").innerHTML = myChildren;&lt;/p&gt;



&lt;p&gt;OUTPUT -- Cecilie,Lone,Emil,Tobias,Linus,Robin,Morgan&lt;/p&gt;

&lt;p&gt;EXAMPLE2;&lt;br&gt;
&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;JavaScript Arrays&lt;/h1&gt;

&lt;h2&gt;The concat() Method&lt;/h2&gt;

&lt;p&gt;The concat() method can merge string values to arrays:&lt;/p&gt;



&lt;p&gt;const myArray = ["Emil", "Tobias", "Linus"];&lt;br&gt;
const myChildren = myArray.concat("Peter"); &lt;br&gt;
document.getElementById("demo").innerHTML = myChildren;&lt;/p&gt;



&lt;p&gt;OUPUT -- Emil,Tobias,Linus,Peter&lt;/p&gt;

&lt;p&gt;12.Array copyWithin()&lt;/p&gt;

&lt;p&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;JavaScript Arrays&lt;/h1&gt;

&lt;h2&gt;The copyWithin() Method&lt;/h2&gt;

&lt;p&gt;copyWithin() copies array elements to another position in an array, overwriting existing values:&lt;/p&gt;

&lt;p&gt;Copy to index 2, all elements from index 0:&lt;/p&gt;



&lt;p&gt;const fruits = ["Banana", "Orange", "Apple", "Mango"];&lt;br&gt;
document.getElementById("demo").innerHTML = fruits.copyWithin(2,0);&lt;/p&gt;



&lt;p&gt;OUTPUT - Banana,Orange,Banana,Orange&lt;/p&gt;

&lt;p&gt;fruits.copyWithin(2,0)&lt;br&gt;
In this case what was happened is first print first two element, because that only mention  then the element start again in 0 index as we mentioned, but the array length is will not change.&lt;/p&gt;

&lt;p&gt;EXAMPLE2:&lt;/p&gt;

&lt;p&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;JavaScript Arrays&lt;/h1&gt;

&lt;h2&gt;The copyWithin() Method&lt;/h2&gt;

&lt;p&gt;copyWithin() copies array elements to another position in an array, overwriting existing values.&lt;/p&gt;

&lt;p&gt;Copy to index 2, the elements from index 0 to 2:&lt;/p&gt;



&lt;p&gt;const fruits = ["Banana", "Orange", "Apple", "Mango", "Kiwi", "Papaya"];&lt;br&gt;
document.getElementById("demo").innerHTML = fruits.copyWithin(4,0,2);&lt;/p&gt;



&lt;p&gt;OUTPUT -- Banana,Orange,Apple,Mango,Banana,Orange&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>What is a Constructor Function in JavaScript? (Beginner Guide with Examples)</title>
      <dc:creator>subash</dc:creator>
      <pubDate>Tue, 07 Apr 2026 13:50:38 +0000</pubDate>
      <link>https://forem.com/subash_4870e66d76ac024544/what-is-a-constructor-function-in-javascript-beginner-guide-with-examples-2990</link>
      <guid>https://forem.com/subash_4870e66d76ac024544/what-is-a-constructor-function-in-javascript-beginner-guide-with-examples-2990</guid>
      <description>&lt;p&gt;=&amp;gt;Sometimes we need to create many objects of the same type.&lt;br&gt;
=&amp;gt;To create an object type we use an object constructor function.&lt;br&gt;
=&amp;gt;It is considered good practice to name constructor functions with an upper-case first letter(const Person1{}).&lt;/p&gt;

&lt;p&gt;*what is object type?&lt;br&gt;
 It is a template to create many similar objects.&lt;/p&gt;

&lt;p&gt;for example;&lt;br&gt;
 const Person1 {&lt;br&gt;
 name :John, &lt;br&gt;
 age : 25&lt;br&gt;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;const Person2 {&lt;br&gt;
 name :Kumar, &lt;br&gt;
 age : 30&lt;br&gt;&lt;br&gt;
} &lt;/p&gt;

&lt;p&gt;const Person3 {&lt;br&gt;
 name :Ravi, &lt;br&gt;
 age : 28&lt;br&gt;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;These all have the same template, like name,  age, so in this case there is no need to create separate object, because all have same structure so we can use constructor function.&lt;/p&gt;

&lt;p&gt;for example;&lt;/p&gt;

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

&lt;p&gt;const person1 = new Person("John",25);&lt;br&gt;
const person2 = new Person("Kumar",30);&lt;br&gt;
const person3 = new Person("Ravi",28);&lt;/p&gt;

&lt;p&gt;In this case, what the advantage? We added so many Person in just one line, I did only one function that will apply all, &lt;br&gt;
In this program, we have the word ' this ',  why we use that, that is what we are going to learn now.&lt;/p&gt;

&lt;p&gt;First, we know how to create properties in an object from outside, &lt;br&gt;
example;&lt;br&gt;
const Person3 {&lt;br&gt;
 name:Ravi, &lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;//this Person3 object have not key of age so that what we are going to create //&lt;/p&gt;

&lt;p&gt;Person3.age = 28;&lt;/p&gt;

&lt;p&gt;That's it, here  what was happened is we mentioned Person3 first then we will mention what is inside Person3 that is we should  mention, and we pshould use dot betweeen parent and child, that's why have dot between Person3 and agePerson3.age).&lt;/p&gt;

&lt;p&gt;Person3.age = 28; finally i put the value for age, if age key is already present in the Person3 object, the value will change, if not present, that key it will be created as a property.&lt;/p&gt;

&lt;h1&gt;
  
  
  NOW WE ARE GOING TO RELATE (this &amp;amp; person3.age)
&lt;/h1&gt;

&lt;p&gt;*Person3 is replaced by 'this' simple,&lt;br&gt;
*'this' is the representation of current callback .&lt;/p&gt;

&lt;p&gt;const Person1 = new Person("John",25);&lt;br&gt;
const Person2 = new Person("Kumar",30);&lt;br&gt;
const Person3 = new Person("Ravi",28); these are all the callbacks.&lt;/p&gt;

&lt;p&gt;First, our goal is to shorten the code, so we use this  constructor function&lt;/p&gt;

&lt;p&gt;ex;1 &lt;/p&gt;

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

&lt;p&gt;const Person1 = new Person("John",25);&lt;br&gt;
const Person2 = new Person("Kumar",30);&lt;br&gt;
const Person3 = new Person("Ravi",28);&lt;/p&gt;

&lt;p&gt;ex2;&lt;br&gt;
Person1 {&lt;br&gt;
 name :John, &lt;br&gt;
 age : 25&lt;br&gt;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Person2 {&lt;br&gt;
 name :Kumar, &lt;br&gt;
 age : 30&lt;br&gt;&lt;br&gt;
} &lt;/p&gt;

&lt;p&gt;Person3 {&lt;br&gt;
 name :Ravi, &lt;br&gt;
 age : 28&lt;br&gt;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;example1 and example2 both are same but example1 increase by one line and example2 is increase by three line.&lt;br&gt;
In this case three line may be feel short but when we have more than 10 or so many properties, then we have to write more than 10 or so many number of lines in example 2 , &lt;br&gt;
but still example1 will solve that in one line.&lt;/p&gt;

&lt;p&gt;this.name , Person3.name, Person1.name, and Person2.name all are same.&lt;br&gt;
but one, this.name =  Person3.name, Person1.name, and Person2&lt;/p&gt;

&lt;h2&gt;
  
  
  EXPLANATION OF THIS LINE(this.name = name ;)
&lt;/h2&gt;

&lt;p&gt;this.name is to create variable like Person3.name&lt;br&gt;
=name =&amp;gt; this name is parameter what hava function &lt;br&gt;
                                     =&amp;gt;function person (name,age){&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>“What is an Object in JavaScript? Complete Beginner Guide”</title>
      <dc:creator>subash</dc:creator>
      <pubDate>Tue, 07 Apr 2026 07:01:56 +0000</pubDate>
      <link>https://forem.com/subash_4870e66d76ac024544/what-is-an-object-in-javascript-complete-beginner-guide-4adf</link>
      <guid>https://forem.com/subash_4870e66d76ac024544/what-is-an-object-in-javascript-complete-beginner-guide-4adf</guid>
      <description>&lt;p&gt;Object is used to store data in key-value pairs and are used in almost every application, in this blog we are going to learn how object work and how to create one.&lt;/p&gt;

&lt;h1&gt;
  
  
  What is an object in JavaScript?
&lt;/h1&gt;

&lt;p&gt;let person = {&lt;br&gt;
  name: "John",&lt;br&gt;
  age: 25&lt;br&gt;
};&lt;/p&gt;

&lt;p&gt;*Object is a collection of data, stored as a key-value pairs like in this case name is the key and "John" is value of name,&lt;br&gt;
 key+value = Properties.&lt;/p&gt;

&lt;p&gt;*#How to Access Object Values&lt;/p&gt;

&lt;p&gt;let person = {&lt;br&gt;
  name: "John",&lt;br&gt;
  age: 25&lt;br&gt;
};&lt;/p&gt;

&lt;p&gt;delete person.age&lt;/p&gt;

&lt;p&gt;console.log(person) =&amp;gt;output is  name: "John"&lt;/p&gt;

&lt;h2&gt;
  
  
  if we want to change that key value then;
&lt;/h2&gt;

&lt;p&gt;person.name = "subash"&lt;br&gt;
console.log(person) =&amp;gt; output is name: "subash"&lt;/p&gt;

&lt;h2&gt;
  
  
  how to add properties;
&lt;/h2&gt;

&lt;p&gt;there no diff b/w change key values and add propertise&lt;/p&gt;

&lt;p&gt;person.address = "ariyalur"; this will add address key in object;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use nested object
&lt;/h2&gt;

&lt;p&gt;Object inside another object&lt;/p&gt;

&lt;p&gt;let person = {&lt;br&gt;
  name: "John",&lt;br&gt;
  age: 25,&lt;br&gt;
  Education:{&lt;br&gt;
    ug : "civil"}&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;This is the nested object.&lt;/p&gt;

&lt;p&gt;CRUD- Create Read Update Delete this is what we discussed&lt;/p&gt;

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