<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Anandhi P</title>
    <description>The latest articles on DEV Community by Anandhi P (@anandhi_p_e391b5c2d6d4b6b).</description>
    <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4019836%2Fa7df8a83-62b5-425f-81d9-6173496a2182.png</url>
      <title>DEV Community: Anandhi P</title>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anandhi_p_e391b5c2d6d4b6b"/>
    <language>en</language>
    <item>
      <title>DOM IN JAVASCRIPT</title>
      <dc:creator>Anandhi P</dc:creator>
      <pubDate>Thu, 03 Sep 2026 15:01:51 +0000</pubDate>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b/dom-in-javascript-3c1g</link>
      <guid>https://dev.to/anandhi_p_e391b5c2d6d4b6b/dom-in-javascript-3c1g</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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhhg8o356qvcoydjvfokp.jpg" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhhg8o356qvcoydjvfokp.jpg" alt=" " width="550" height="850"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is DOM?
&lt;/h2&gt;

&lt;p&gt;DOM stands for &lt;strong&gt;Document Object Model&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;DOM is used to &lt;strong&gt;access and change HTML elements using JavaScript&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;When a web page loads, the browser creates a DOM structure for the HTML page.&lt;/p&gt;

&lt;p&gt;Using DOM, we can change:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;HTML text&lt;/li&gt;
&lt;li&gt;HTML styles&lt;/li&gt;
&lt;li&gt;HTML attributes&lt;/li&gt;
&lt;li&gt;HTML elements&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Simple Example
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;h1&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"title"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Hello&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;onclick=&lt;/span&gt;&lt;span class="s"&gt;"changeText()"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Click Me&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;changeText&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;title&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;innerText&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Welcome&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="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  How it works
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; contains &lt;strong&gt;Hello&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;getElementById("title")&lt;/code&gt; finds the &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; element.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;innerText&lt;/code&gt; changes the text.&lt;/li&gt;
&lt;li&gt;When we click the button, &lt;strong&gt;Hello&lt;/strong&gt; changes to &lt;strong&gt;Welcome&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Simple Definition
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;DOM = Using JavaScript to access and change HTML elements.&lt;/strong&gt;&lt;br&gt;
 HTML has &lt;/p&gt;
&lt;h1&gt; → Hello&lt;br&gt;
JavaScript finds it using getElementById()&lt;br&gt;
innerText changes the text&lt;br&gt;
Click the button → Welcome appears.&lt;/h1&gt;


&lt;p&gt;&lt;strong&gt;Style&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;style is used to change the CSS style of an HTML element using JavaScript.&lt;/p&gt;

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


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

&lt;p&gt;document.getElementById("title").style.color = "red";&lt;/p&gt;

&lt;p&gt;Now the Hello text will appear in red.&lt;/p&gt;

&lt;p&gt;We can change different styles:&lt;/p&gt;

&lt;p&gt;element.style.color = "red";&lt;br&gt;
element.style.backgroundColor = "yellow";&lt;br&gt;
element.style.fontSize = "30px";&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;InnerText&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;innerText is used to get or change the text inside an HTML element.&lt;/p&gt;

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

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

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

&lt;p&gt;Before:&lt;/p&gt;

&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;After:&lt;/p&gt;

&lt;p&gt;Welcome&lt;/p&gt;

&lt;p&gt;querySelector()&lt;/p&gt;

&lt;p&gt;querySelector() is used to find the first matching HTML element.&lt;/p&gt;

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

&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;let element = document.querySelector(".text");&lt;br&gt;
element.innerText = "Welcome";&lt;/p&gt;

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;Welcome&lt;/p&gt;

&lt;h1&gt;
  
  
  → ID
&lt;/h1&gt;

&lt;p&gt;. → Class&lt;/p&gt;

&lt;p&gt;document.querySelector("#title");&lt;br&gt;
document.querySelector(".text");&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Function in javascript</title>
      <dc:creator>Anandhi P</dc:creator>
      <pubDate>Wed, 02 Sep 2026 14:52:34 +0000</pubDate>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b/function-in-javascript-5a4h</link>
      <guid>https://dev.to/anandhi_p_e391b5c2d6d4b6b/function-in-javascript-5a4h</guid>
      <description>&lt;p&gt;What are Functions?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Functions are reusable code blocks designed for particular tasks .&lt;/li&gt;
&lt;li&gt;Functions are executed when they are called or invoked .&lt;/li&gt;
&lt;li&gt;Functions are fundamental in all programming languages .&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Program:&lt;/strong&gt;*&lt;/p&gt;

&lt;p&gt;&lt;code&gt;function sayHello() {&lt;br&gt;
    console.log("Hello");&lt;br&gt;
}&lt;br&gt;
 console.log("Hello")&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Output&lt;/em&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;Hello&lt;/p&gt;
&lt;h3&gt;
  
  
  Calling a Function
&lt;/h3&gt;

&lt;p&gt;Calling a function means &lt;strong&gt;executing or running the function&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;After creating a function, we can call it by using the &lt;strong&gt;function name followed by parentheses &lt;code&gt;()&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;h4&gt;
  
  
  Example
&lt;/h4&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;greet&lt;/span&gt;&lt;span class="p"&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;Hello&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="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;greet()&lt;/code&gt; is used to &lt;strong&gt;call the function&lt;/strong&gt;. When the function is called, the code inside the function is executed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Hello
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Function Parameters
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Parameters&lt;/strong&gt; allow us to &lt;strong&gt;send values&lt;/strong&gt; to a function.&lt;/li&gt;
&lt;li&gt;Parameters are written &lt;strong&gt;inside parentheses &lt;code&gt;()&lt;/code&gt;&lt;/strong&gt; when we define a function.&lt;/li&gt;
&lt;li&gt;The values passed to the function are called &lt;strong&gt;arguments&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Example
&lt;/h4&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;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&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="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;15
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Function Return Values
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;A function can &lt;strong&gt;return a value&lt;/strong&gt; to the code that called it.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;&lt;code&gt;return&lt;/code&gt; statement&lt;/strong&gt; is used to return a value from a function.&lt;/li&gt;
&lt;li&gt;The returned value can be stored in a variable or used in another operation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Example
&lt;/h4&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;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;b&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;a&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;;&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;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&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="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;return a + b&lt;/code&gt; → returns the result from the function.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;add(10, 5)&lt;/code&gt; → calls the function.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;result&lt;/code&gt; → stores the returned value.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Function Arguments
&lt;/h3&gt;

&lt;p&gt;Function &lt;strong&gt;parameters&lt;/strong&gt; and &lt;strong&gt;arguments&lt;/strong&gt; are different.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Parameters&lt;/strong&gt; are the &lt;strong&gt;names&lt;/strong&gt; written inside the parentheses when defining a function.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Arguments&lt;/strong&gt; are the &lt;strong&gt;actual values&lt;/strong&gt; passed to the function when calling it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Example
&lt;/h4&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;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&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="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;a&lt;/code&gt; and &lt;code&gt;b&lt;/code&gt; → &lt;strong&gt;Parameters&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;10&lt;/code&gt; and &lt;code&gt;5&lt;/code&gt; → &lt;strong&gt;Arguments&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Simple way to remember:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Parameter = Name&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Argument = Value&lt;/strong&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>ARRAY IN JAVASCRIPT</title>
      <dc:creator>Anandhi P</dc:creator>
      <pubDate>Tue, 01 Sep 2026 15:32:53 +0000</pubDate>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b/array-in-javascript-gol</link>
      <guid>https://dev.to/anandhi_p_e391b5c2d6d4b6b/array-in-javascript-gol</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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9trfjjf5g0v7i1yfmoba.jpg" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9trfjjf5g0v7i1yfmoba.jpg" alt=" " width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ARRAY&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Array in JavaScript
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;An array is used to store multiple values in one variable.&lt;/li&gt;
&lt;li&gt;An array can store different types of values.&lt;/li&gt;
&lt;li&gt;Array values are written inside &lt;code&gt;[]&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Each value has an index number starting from &lt;code&gt;0&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;We can use array methods to add, remove, and manage values.&lt;/li&gt;
&lt;/ol&gt;

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

&lt;p&gt;let Flowers = [" Rose", "Loutus", "Lily"];&lt;/p&gt;

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

&lt;p&gt;Outout;&lt;br&gt;
[' Rose', 'Loutus', 'Lily']&lt;br&gt;
0: " Rose"&lt;br&gt;
1: "Loutus"&lt;br&gt;
2: "Lily"&lt;br&gt;
length: 3&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Push&lt;/strong&gt;&lt;br&gt;
push() – last-la add&lt;/p&gt;

&lt;p&gt;let a = [1, 2, 3];&lt;/p&gt;

&lt;p&gt;a.push(4);&lt;/p&gt;

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

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;[1, 2, 3, 4]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;pop&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;pop() – last value remove&lt;/p&gt;

&lt;p&gt;let a = [1, 2, 3];&lt;/p&gt;

&lt;p&gt;a.pop();&lt;/p&gt;

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

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;[1, 2]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unshift&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;unshift() – first-la add&lt;/p&gt;

&lt;p&gt;let a = [2, 3];&lt;/p&gt;

&lt;p&gt;a.unshift(1);&lt;/p&gt;

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

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;[1, 2, 3]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;shift&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;shift() – first value remove&lt;/p&gt;

&lt;p&gt;let a = [1, 2, 3];&lt;/p&gt;

&lt;p&gt;a.shift();&lt;/p&gt;

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

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;[2, 3]&lt;/p&gt;

&lt;p&gt;ALL ARRAYS METHODS&lt;/p&gt;

&lt;p&gt;push      → add last&lt;br&gt;
pop       → remove last&lt;br&gt;
unshift   → add first&lt;br&gt;
shift     → remove first&lt;br&gt;
includes  → check value&lt;br&gt;
indexOf   → find position&lt;br&gt;
slice     → copy part&lt;br&gt;
splice    → add/remove&lt;br&gt;
join      → array to string&lt;br&gt;
reverse   → reverse&lt;br&gt;
sort      → arrange&lt;br&gt;
forEach   → print/do for each&lt;br&gt;
map       → change values&lt;br&gt;
filter    → select values&lt;br&gt;
find      → find first value&lt;br&gt;
some      → any one&lt;br&gt;
every     → all&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Loop in JavaScript</title>
      <dc:creator>Anandhi P</dc:creator>
      <pubDate>Mon, 31 Aug 2026 17:44:32 +0000</pubDate>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b/loop-in-javascript-np4</link>
      <guid>https://dev.to/anandhi_p_e391b5c2d6d4b6b/loop-in-javascript-np4</guid>
      <description>&lt;p&gt;A &lt;strong&gt;loop&lt;/strong&gt; is used to repeat a block of code again and again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Types of Loops
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. for Loop
&lt;/h3&gt;

&lt;p&gt;Used when we know how many times to repeat.&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="k"&gt;for &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;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&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="nx"&gt;i&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;Output:&lt;br&gt;
&lt;code&gt;1 2 3 4 5&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  2. while Loop
&lt;/h3&gt;

&lt;p&gt;Runs while the condition is true.&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;let&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;while &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&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="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&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;h3&gt;
  
  
  3. do...while Loop
&lt;/h3&gt;

&lt;p&gt;Runs the code at least &lt;strong&gt;one time&lt;/strong&gt;.&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;let&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;do&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="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&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;while &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. for...of Loop
&lt;/h3&gt;

&lt;p&gt;Used to get &lt;strong&gt;values&lt;/strong&gt; from an array.&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;let&lt;/span&gt; &lt;span class="nx"&gt;fruits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Apple&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Mango&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;

&lt;span class="k"&gt;for &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;fruit&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;fruits&lt;/span&gt;&lt;span class="p"&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="nx"&gt;fruit&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;h3&gt;
  
  
  5. for...in Loop
&lt;/h3&gt;

&lt;p&gt;Used to get &lt;strong&gt;keys&lt;/strong&gt; from an object.&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;let&lt;/span&gt; &lt;span class="nx"&gt;person&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Anandhi&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;age&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;21&lt;/span&gt;&lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="k"&gt;for &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;key&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nx"&gt;person&lt;/span&gt;&lt;span class="p"&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="nx"&gt;key&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;h2&gt;
  
  
  break
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;break&lt;/code&gt; is used to &lt;strong&gt;stop the loop&lt;/strong&gt;.&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="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;break&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;h2&gt;
  
  
  continue
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;continue&lt;/code&gt; is used to &lt;strong&gt;skip the current iteration&lt;/strong&gt;.&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="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;continue&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;h2&gt;
  
  
  Nested Loop
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;loop inside another loop&lt;/strong&gt; is called a nested loop.&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="k"&gt;for &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;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&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;for &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;j&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;j&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;j&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&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="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;j&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;for&lt;/code&gt; → Repeat a fixed number of times&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;while&lt;/code&gt; → Repeat while condition is true&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;do...while&lt;/code&gt; → Runs at least once&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;for...of&lt;/code&gt; → Gets values&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;for...in&lt;/code&gt; → Gets keys&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;break&lt;/code&gt; → Stops loop&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;continue&lt;/code&gt; → Skips one iteration&lt;/li&gt;
&lt;li&gt;Nested loop → Loop inside another loop&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;qUESTION:&lt;/p&gt;

&lt;p&gt;String.fromCharCode(64 + i) என்னன்னா, number-ஐ letter-ஆ மாற்றுவது.&lt;/p&gt;

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

&lt;p&gt;let i = 1;&lt;/p&gt;

&lt;p&gt;String.fromCharCode(64 + i)&lt;/p&gt;

&lt;p&gt;Step by step:&lt;/p&gt;

&lt;p&gt;i = 1&lt;br&gt;
64 + 1 = 65&lt;br&gt;
65 → A&lt;/p&gt;

&lt;p&gt;அதனால் output A.&lt;/p&gt;

&lt;p&gt;Next:&lt;/p&gt;

&lt;p&gt;i = 2&lt;br&gt;
64 + 2 = 66&lt;br&gt;
66 → B&lt;/p&gt;

&lt;p&gt;1 → A&lt;br&gt;
2 → B&lt;br&gt;
3 → C&lt;br&gt;
4 → D&lt;br&gt;
...&lt;br&gt;
26 → Z&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Conditional Statements in JavaScript.</title>
      <dc:creator>Anandhi P</dc:creator>
      <pubDate>Thu, 27 Aug 2026 17:42:27 +0000</pubDate>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b/conditional-statements-in-javascript-3kc3</link>
      <guid>https://dev.to/anandhi_p_e391b5c2d6d4b6b/conditional-statements-in-javascript-3kc3</guid>
      <description>&lt;p&gt;``&lt;br&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftv0xlej7wgj6qlfidhh7.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftv0xlej7wgj6qlfidhh7.png" alt=" " width="576" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Conditional statements are used to make decisions in a program.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;They check whether a condition is true or false.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;JavaScript provides if, else, and else if for conditional statements.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;These statements help decide which block of code should run.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;They are commonly used when a program needs to make a decision.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If Statement&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The if statement is used to check a condition.&lt;/li&gt;
&lt;li&gt;If the condition is true, the code inside the if block will run.&lt;/li&gt;
&lt;li&gt;If the condition is false, the code inside the block will not run.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
let age = 20;&lt;/p&gt;

&lt;p&gt;if (age &amp;gt;= 18) {&lt;br&gt;
    console.log("You are eligible to vote");&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;You are eligible to vote&lt;/p&gt;

&lt;p&gt;Else Statement&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The else statement is used when the if condition is false.&lt;/li&gt;
&lt;li&gt;It provides an alternative block of code to run.&lt;/li&gt;
&lt;li&gt;If the if condition is true, the else block will not run.&lt;/li&gt;
&lt;li&gt;It is used to handle the opposite condition.&lt;/li&gt;
&lt;li&gt;else is always used with an if statement.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;let age = 16;&lt;/p&gt;

&lt;p&gt;if (age &amp;gt;= 18) {&lt;br&gt;
    console.log("You are eligible to vote");&lt;br&gt;
} else {&lt;br&gt;
    console.log("You are not eligible to vote");&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
You are not eligible to vote&lt;/p&gt;

&lt;p&gt;Else If Statement&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The else if statement is used to check another condition.&lt;/li&gt;
&lt;li&gt;It is used when the first if condition is false.&lt;/li&gt;
&lt;li&gt; We can use multiple else if conditions in a program.&lt;/li&gt;
&lt;li&gt; The first true condition will be executed.&lt;/li&gt;
&lt;li&gt;It is useful for checking multiple conditions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
let mark = 75;&lt;/p&gt;

&lt;p&gt;if (mark &amp;gt;= 90) {&lt;br&gt;
    console.log("A Grade");&lt;br&gt;
} else if (mark &amp;gt;= 60) {&lt;br&gt;
    console.log("B Grade");&lt;br&gt;
} else {&lt;br&gt;
    console.log("C Grade");&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;B Grade&lt;/p&gt;

&lt;p&gt;nested &lt;/p&gt;

&lt;p&gt;Nested If Statement&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A nested if means using an if statement inside another if statement.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The inner if condition is checked only when the outer if condition is true.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is used to check conditions step by step.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A nested if can have another if inside it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;This helps handle multiple levels of conditions.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;let age = 20;&lt;br&gt;
let hasId = true;&lt;/p&gt;

&lt;p&gt;if (age &amp;gt;= 18) {&lt;br&gt;
    if (hasId) {&lt;br&gt;
        console.log("Entry allowed");&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;Entry allowed&lt;br&gt;
swited&lt;/p&gt;

&lt;p&gt;Switch Statement&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The switch statement is used to check a value against multiple cases.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It runs the code for the matching case.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The break statement stops the switch after a match.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The default case runs when no case matches.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is useful when we have multiple possible values.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
let day = 2;&lt;/p&gt;

&lt;p&gt;switch (day) {&lt;br&gt;
    case 1:&lt;br&gt;
        console.log("Monday");&lt;br&gt;
        break;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;case 2:
    console.log("Tuesday");
    break;

default:
    console.log("Invalid day");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;Tuesday&lt;/p&gt;

&lt;p&gt;Ternary Operator (? :)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The ternary operator is a short form of if...else.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*It checks a condition and returns one of two values.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;? is used for the true condition.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;: is used for the false condition.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is useful for writing simple conditions in one line.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;let age = 20;&lt;/p&gt;

&lt;p&gt;let result = age &amp;gt;= 18 ? "Eligible" : "Not Eligible";&lt;/p&gt;

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

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;Eligible&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Operators in javascript</title>
      <dc:creator>Anandhi P</dc:creator>
      <pubDate>Wed, 26 Aug 2026 17:52:36 +0000</pubDate>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b/operators-in-javascript-504g</link>
      <guid>https://dev.to/anandhi_p_e391b5c2d6d4b6b/operators-in-javascript-504g</guid>
      <description>&lt;h1&gt;
  
  
  Operators in JavaScript
&lt;/h1&gt;

&lt;p&gt;The different  type of operators in JavaScript. Operators are symbols used to perform different operations.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    * Addition Operator
    * Assignment Operator
    * Addition Assignment Operator
    * Subtraction Operator
    * Subtraction Assignment Operator
    * Multiplication Operator
    * Division Operator
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  1. Addition Operator (+)
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;+&lt;/code&gt; operator is used to add two numbers.&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;let&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&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;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&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="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;15
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Assignment Operator (=)
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;=&lt;/code&gt; operator is used to assign a value to a variable.&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;let&lt;/span&gt; &lt;span class="nx"&gt;number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&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="nx"&gt;number&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, &lt;code&gt;10&lt;/code&gt; is assigned to &lt;code&gt;number&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Addition Assignment Operator (+=)
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;+=&lt;/code&gt; operator adds a value to the existing value.&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;let&lt;/span&gt; &lt;span class="nx"&gt;number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;number&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;5&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="nx"&gt;number&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;15
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It is the same as:&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="nx"&gt;number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;number&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In my calculator, &lt;code&gt;+=&lt;/code&gt; is also used to add a new digit to the existing value.&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="nx"&gt;currentValue&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;currentValue&lt;/code&gt; is &lt;code&gt;"10"&lt;/code&gt; and &lt;code&gt;value&lt;/code&gt; is &lt;code&gt;"5"&lt;/code&gt;, the output becomes &lt;code&gt;"105"&lt;/code&gt; because they are strings.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Subtraction Operator (-)
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;-&lt;/code&gt; operator is used to subtract one number from another.&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;let&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&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;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&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="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Subtraction Assignment Operator (-=)
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;-=&lt;/code&gt; operator subtracts a value from the existing value.&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;let&lt;/span&gt; &lt;span class="nx"&gt;number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;number&lt;/span&gt; &lt;span class="o"&gt;-=&lt;/span&gt; &lt;span class="mi"&gt;5&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="nx"&gt;number&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It is the same as:&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="nx"&gt;number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;number&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. Multiplication Operator (*)
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;*&lt;/code&gt; operator is used to multiply two numbers.&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;let&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&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;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&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="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;50
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. Division Operator (/)
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;/&lt;/code&gt; operator is used to divide one number by another.&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;let&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&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;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&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="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;*Comparison Operators&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Comparison operators are used to compare two values.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;They return either true or false.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;
&lt;p&gt;means more than and &amp;lt; means less than.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt; == checks whether two values are equal.&lt;/li&gt;
&lt;li&gt; === checks both value and data type.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
let a = 10;&lt;br&gt;
let b = 5;&lt;/p&gt;

&lt;p&gt;console.log(a &amp;gt; b);   // true&lt;br&gt;
console.log(a &amp;lt; b);   // false&lt;br&gt;
console.log(a == 10); // true&lt;br&gt;
console.log(a === 10); // true&lt;/p&gt;

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

&lt;p&gt;true&lt;br&gt;
false&lt;br&gt;
true&lt;br&gt;
true&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Logical Operators&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Logical operators are used to combine two or more conditions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&amp;amp;&amp;amp; means AND and checks if all conditions are true.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;|| means OR and checks if at least one condition is true.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;! means NOT and changes true to false or false to true.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Logical operators are commonly used with if conditions.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;&amp;amp;&amp;amp; AND Operator&lt;/p&gt;

&lt;p&gt;The &amp;amp;&amp;amp; operator checks whether both conditions are true.&lt;/p&gt;

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

&lt;p&gt;let age = 20;&lt;/p&gt;

&lt;p&gt;console.log(age &amp;gt; 18 &amp;amp;&amp;amp; age &amp;lt; 30);&lt;/p&gt;

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;true&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OR Operator&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The || operator checks whether at least one condition is true.&lt;/p&gt;

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

&lt;p&gt;let age = 20;&lt;/p&gt;

&lt;p&gt;console.log(age &amp;gt; 18 || age &amp;lt; 10);&lt;/p&gt;

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;true&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;! NOT Operator&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The ! operator changes true to false and false to true.&lt;/p&gt;

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

&lt;p&gt;let age = 20;&lt;/p&gt;

&lt;p&gt;console.log(!(age &amp;gt; 18));&lt;/p&gt;

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;false&lt;/p&gt;

&lt;p&gt;Increment and Decrement Operators&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The ++ operator increases a value by 1.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The -- operator decreases a value by 1.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;These operators are used to increase or decrease a variable.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;They are commonly used in loops and calculations.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The value changes directly when the operator is used.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;let number = 10;&lt;/p&gt;

&lt;p&gt;number++;&lt;br&gt;
console.log(number);&lt;/p&gt;

&lt;p&gt;number--;&lt;br&gt;
console.log(number);&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
11&lt;br&gt;
10&lt;/p&gt;

&lt;p&gt;Modulus Operator (%)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; The % operator is used to find the remainder after division.&lt;/li&gt;
&lt;li&gt;  It gives the remaining value after one number is divided by another.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;let a = 10;&lt;br&gt;
let b = 3;&lt;/p&gt;

&lt;p&gt;console.log(a % b);&lt;/p&gt;

&lt;p&gt;Output:&lt;/p&gt;

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

&lt;p&gt;Exponentiation Operator (**)&lt;/p&gt;

&lt;p&gt;The ** operator is used to calculate the power of a number.&lt;/p&gt;

&lt;p&gt;It raises the first number to the power of the second number.&lt;/p&gt;

&lt;p&gt;For example, 2 ** 3 means 2 × 2 × 2.&lt;/p&gt;

&lt;p&gt;The result is 8.&lt;/p&gt;

&lt;p&gt;It is also called the power operator.&lt;/p&gt;

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

&lt;p&gt;let a = 2;&lt;br&gt;
let b = 3;&lt;br&gt;
console.log(a ** b);&lt;/p&gt;

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

&lt;p&gt;8&lt;/p&gt;

&lt;p&gt;Not Equal Operator (!=)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The != operator checks whether two values are not equal.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If the values are different, it returns true.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If the values are the same, it returns false.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It checks the value but does not strictly check the data type.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is used to compare two different values.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;let a = 10;&lt;br&gt;
let b = 5;&lt;/p&gt;

&lt;p&gt;console.log(a != b);&lt;/p&gt;

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

&lt;p&gt;true&lt;/p&gt;

&lt;p&gt;Strict Not Equal Operator (!==)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The !== operator checks whether two values are not equal.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; It checks both the value and data type.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If either the value or data type is different, it returns true.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If both are the same, it returns false.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is called the Strict Not Equal Operator.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
let a = 10;&lt;br&gt;
let b = "10";&lt;/p&gt;

&lt;p&gt;console.log(a !== b);&lt;/p&gt;

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;true&lt;/p&gt;

&lt;p&gt;10 is a number and "10" is a string.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Objects and Functions in JavaScript</title>
      <dc:creator>Anandhi P</dc:creator>
      <pubDate>Tue, 25 Aug 2026 17:43:31 +0000</pubDate>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b/objects-and-functions-in-javascript-3lgn</link>
      <guid>https://dev.to/anandhi_p_e391b5c2d6d4b6b/objects-and-functions-in-javascript-3lgn</guid>
      <description>&lt;p&gt;Object&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;An object in JavaScript is used to store related data and information in one place.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; An object stores data using key and value pairs.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;let student = {&lt;br&gt;
    name: "Anandhi",&lt;br&gt;
    age: 21,&lt;br&gt;
    course: "Computer Science"&lt;br&gt;
};&lt;/p&gt;

&lt;p&gt;console.log(student.name);&lt;/p&gt;

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;Anandhi&lt;/p&gt;

&lt;p&gt;Function&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A function is a block of code used to perform a specific task.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We can create a function once and use it many times.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;function greet() {&lt;br&gt;
    console.log("Hello");&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;greet();&lt;/p&gt;

&lt;p&gt;OutputL:&lt;/p&gt;

&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;Simple Difference  :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Object → Stores data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Function → Performs a task.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Primitive Data Type in javascript</title>
      <dc:creator>Anandhi P</dc:creator>
      <pubDate>Mon, 24 Aug 2026 17:44:12 +0000</pubDate>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b/primitive-data-type-177k</link>
      <guid>https://dev.to/anandhi_p_e391b5c2d6d4b6b/primitive-data-type-177k</guid>
      <description>&lt;p&gt;Primitive data types are the basic building blocks used to store values in JavaScript.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F93gflndbhrngqs5wzvtd.jpg" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F93gflndbhrngqs5wzvtd.jpg" alt=" " width="489" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;String&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;String is used to store text.&lt;br&gt;
Ex:&lt;br&gt;
    let name = "Anandhi";&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Number&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Number is used to store numbers.&lt;br&gt;
Ex:&lt;br&gt;
      let age = 21;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;BigInt&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;BigInt is used to store very large numbers.&lt;br&gt;
Ex:&lt;br&gt;
     let bigNumber =             12345678901234567890n;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Boolean&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Boolean stores only true or false.&lt;br&gt;
Ex:&lt;br&gt;
     let isStudent = true;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Undefined&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Undefined means a variable is declared but no value is given.&lt;br&gt;
 Ex:&lt;br&gt;
       let city; Null&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; Null
Null means an empty or no value.
Ex :
 let address = null;&lt;/li&gt;
&lt;li&gt;Symbol&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Symbol is used to create a unique value.&lt;br&gt;
Ex:&lt;br&gt;
    let id = Symbol("id");&lt;/p&gt;

</description>
    </item>
    <item>
      <title>TEST CASE</title>
      <dc:creator>Anandhi P</dc:creator>
      <pubDate>Sun, 23 Aug 2026 17:56:10 +0000</pubDate>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b/test-case-1nn8</link>
      <guid>https://dev.to/anandhi_p_e391b5c2d6d4b6b/test-case-1nn8</guid>
      <description>&lt;p&gt;1.A test case is a set of steps used to test a software feature.&lt;/p&gt;

&lt;p&gt;2 It tells us what to test.&lt;/p&gt;

&lt;p&gt;3.It includes the test steps.&lt;/p&gt;

&lt;p&gt;4.It includes the expected result.&lt;/p&gt;

&lt;p&gt;5.It also includes the actual result.&lt;/p&gt;

&lt;p&gt;6.We use test cases to find bugs.&lt;/p&gt;

&lt;p&gt;7.Test cases can be positive or negative.&lt;/p&gt;

&lt;p&gt;8 A positive test checks valid input.&lt;/p&gt;

&lt;p&gt;9.A negative test checks invalid input.&lt;/p&gt;

&lt;p&gt;10.Test cases help to make software reliable and error-free.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
 Instagram  Login Test Case – Pass &amp;amp; Failed&lt;/p&gt;

&lt;p&gt;Pass:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open the login page.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter a valid username.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter a valid password.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click the Login button.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;User is successfully logged in.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Result: Pass&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Failed:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open the login page.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter an invalid username.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter an invalid password.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click the Login button.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Error message should be displayed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Result: Fail&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Bug Life Cycle</title>
      <dc:creator>Anandhi P</dc:creator>
      <pubDate>Sat, 22 Aug 2026 07:30:57 +0000</pubDate>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b/bug-life-cycle-288</link>
      <guid>https://dev.to/anandhi_p_e391b5c2d6d4b6b/bug-life-cycle-288</guid>
      <description>&lt;p&gt;Bug Life Cycle&lt;/p&gt;

&lt;p&gt;Bug Life Cycle is the sequence of stages a bug goes through from the time it is identified until it is closed.&lt;/p&gt;

&lt;p&gt;Main stages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;New&lt;br&gt;
Tester finds a defect and reports it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Assigned&lt;br&gt;
The bug is assigned to a developer.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open&lt;br&gt;
Developer starts investigating the bug.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Fixed&lt;br&gt;
Developer fixes the defect.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Retest&lt;br&gt;
Tester tests the bug again after the fix.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Verified&lt;br&gt;
Tester confirms that the bug has been successfully fixed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Closed&lt;br&gt;
The bug is completely resolved and closed.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Other possible statuses:&lt;/p&gt;

&lt;p&gt;Rejected – Bug is not considered valid.&lt;br&gt;
Duplicate – Same bug has already been reported.&lt;br&gt;
Deferred – Bug will be fixed in a future release.&lt;br&gt;
Reopened – Bug still exists after the developer marked it fixed.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>TEST CASE</title>
      <dc:creator>Anandhi P</dc:creator>
      <pubDate>Fri, 21 Aug 2026 06:00:13 +0000</pubDate>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b/test-case-147g</link>
      <guid>https://dev.to/anandhi_p_e391b5c2d6d4b6b/test-case-147g</guid>
      <description>&lt;p&gt;A test case is a set of steps used to check whether a software feature works correctly.&lt;/p&gt;

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

&lt;p&gt;Test Case 1: Check Login with valid details&lt;/p&gt;

&lt;p&gt;Test Case ID: TC01&lt;br&gt;
Test: Login with valid username and password&lt;br&gt;
Steps: Enter username → Enter password → Click Login&lt;br&gt;
Expected Result: User should successfully login.&lt;br&gt;
Actual Result: User successfully logged in.&lt;br&gt;
Status: Pass&lt;/p&gt;

&lt;p&gt;What is Testing?&lt;/p&gt;

&lt;p&gt;Testing is the process of checking a software or application to find bugs or errors and make sure it works correctly.&lt;/p&gt;

&lt;p&gt;Types of Testing&lt;br&gt;
Manual Testing – Testing is done manually by a tester.&lt;br&gt;
Automation Testing – Testing is done using tools or scripts.&lt;br&gt;
Functional Testing – Checks whether the features work correctly.&lt;br&gt;
Non-Functional Testing – Checks performance, security, usability, etc.&lt;br&gt;
Black Box Testing – Testing without looking at the source code.&lt;br&gt;
White Box Testing – Testing by checking the source code.&lt;br&gt;
Grey Box Testing – Tester has partial knowledge of the source code.&lt;br&gt;
Unit Testing – Tests a small part of the application.&lt;br&gt;
Integration Testing – Checks whether different modules work together.&lt;br&gt;
System Testing – Tests the complete application.&lt;br&gt;
Acceptance Testing – Checks whether the application meets user requirements.&lt;/p&gt;

&lt;p&gt;BVA (Boundary Value Analysis):&lt;br&gt;
It tests the values at the boundary (minimum and maximum).&lt;/p&gt;

&lt;p&gt;Example: Age allowed: 18 to 60&lt;br&gt;
Test: 17, 18, 19, 59, 60, 61&lt;/p&gt;

&lt;p&gt;ECP (Equivalence Class Partitioning):&lt;br&gt;
It divides the input into valid and invalid groups and tests one value from each group.&lt;/p&gt;

&lt;p&gt;Example: Age allowed: 18 to 60&lt;/p&gt;

</description>
    </item>
    <item>
      <title>HTML &amp; CSS Interview Questions</title>
      <dc:creator>Anandhi P</dc:creator>
      <pubDate>Tue, 18 Aug 2026 18:25:14 +0000</pubDate>
      <link>https://dev.to/anandhi_p_e391b5c2d6d4b6b/html-css-interview-questions-1bem</link>
      <guid>https://dev.to/anandhi_p_e391b5c2d6d4b6b/html-css-interview-questions-1bem</guid>
      <description>&lt;ol&gt;
&lt;li&gt;&lt;p&gt;HTML na enna?&lt;br&gt;
HTML is used to create the structure of a webpage.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CSS na enna?&lt;br&gt;
CSS is used to style and design a webpage.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;HTML and CSS difference?&lt;br&gt;
HTML creates the structure. CSS creates the design.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is class?&lt;br&gt;
Class is used to apply styles to one or more HTML elements.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is ID?&lt;br&gt;
ID is used to identify and style a specific HTML element.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;6.What is Flexbox?&lt;br&gt;
Flexbox is used to arrange elements easily in rows or columns.&lt;/p&gt;

&lt;p&gt;7.What is Responsive Design?&lt;br&gt;
Responsive design makes a webpage work properly on mobile, tablet, and computer screens.&lt;/p&gt;

&lt;p&gt;8.What is HTML?&lt;br&gt;
HTML stands for HyperText Markup Language. It is used to create the structure of a web page.&lt;/p&gt;

&lt;p&gt;9.What is an attribute in HTML?&lt;br&gt;
An attribute gives extra information about an HTML element.&lt;br&gt;
Example: &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/photo.jpg" 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/photo.jpg" width="800" height="400"&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;10.What is a form in HTML?&lt;br&gt;
A form is used to collect user information, like name, email, and password.&lt;/p&gt;

&lt;p&gt;11.What is the difference between &lt;/p&gt; and &lt;span&gt;?&lt;br&gt;
 is a block-level element.&lt;br&gt;
&lt;span&gt; is an inline element.

&lt;p&gt;12.What is CSS?&lt;br&gt;
CSS stands for Cascading Style Sheets. It is used to style a webpage.&lt;/p&gt;

&lt;p&gt;13.Why do we use CSS?&lt;br&gt;
CSS is used to change color, size, spacing, layout, and design.&lt;br&gt;
    There are 3 types:&lt;br&gt;
 1.Inline CSS&lt;br&gt;
 2.Internal CSS&lt;br&gt;
 3.External CSS&lt;/p&gt;

&lt;p&gt;1.What is Inline CSS?&lt;br&gt;
CSS written inside an HTML tag is called Inline CSS.&lt;br&gt;
Example: &lt;/p&gt;
&lt;p&gt;Hello&lt;/p&gt;.


&lt;p&gt;2.What is Internal CSS?&lt;br&gt;&lt;br&gt;
CSS written inside the  tag in an HTML file is called Internal CSS.&amp;lt;/p&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;p&amp;gt;3.What is External CSS?&amp;lt;br&amp;gt;&lt;br&gt;
CSS written in a separate .css file is called External CSS.&amp;lt;br&amp;gt;&lt;br&gt;
14.What is a CSS selector?&amp;lt;br&amp;gt;&lt;br&gt;
A selector is used to select an HTML element for styling.&amp;lt;/p&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;p&amp;gt;15.What is a class in CSS?&amp;lt;br&amp;gt;&lt;br&gt;
A class is used to apply the same style to one or more elements.&amp;lt;br&amp;gt;&lt;br&gt;
Example: .box { color: red; }&amp;lt;/p&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;p&amp;gt;16.What is an ID in CSS?&amp;lt;br&amp;gt;&lt;br&gt;
An ID is used to style a specific element.&amp;lt;br&amp;gt;&lt;br&gt;
Example: #header { color: blue; }&amp;lt;/p&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;p&amp;gt;17.What is the CSS box model?&amp;lt;br&amp;gt;&lt;br&gt;
The box model contains:&amp;lt;br&amp;gt;&lt;br&gt;
Content → Padding → Border → Margin&amp;lt;/p&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;p&amp;gt;18.What is margin in CSS?&amp;lt;br&amp;gt;&lt;br&gt;
Margin is the space outside an element.&amp;lt;/p&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;p&amp;gt;19.What is padding in CSS?&amp;lt;br&amp;gt;&lt;br&gt;
Padding is the space inside an element, between the content and border.&amp;lt;/p&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;ol&amp;gt;&lt;br&gt;
&amp;lt;li&amp;gt;What is &amp;amp;lt;!DOCTYPE html&amp;amp;gt;?&lt;br&gt;
It tells the browser that the document uses HTML5.&lt;br&gt;
It is written at the beginning of an HTML file.&amp;lt;/li&amp;gt;&lt;br&gt;
&amp;lt;/ol&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;p&amp;gt;21.What is &amp;lt;hr&amp;gt; tag?&amp;lt;br&amp;gt;&lt;br&gt;
&amp;lt;hr&amp;gt; creates a horizontal line on the webpage.&amp;lt;br&amp;gt;&lt;br&gt;
It is often used to separate sections.&amp;lt;/p&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;ol&amp;gt;&lt;br&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;What is &amp;lt;ul&amp;gt; tag?&amp;lt;br&amp;gt;&lt;br&gt;
&amp;lt;ul&amp;gt; creates an unordered list.&amp;lt;br&amp;gt;&lt;br&gt;
The items are usually shown with bullet points.&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;What is &amp;lt;ol&amp;gt; tag?&amp;lt;br&amp;gt;&lt;br&gt;
&amp;lt;ol&amp;gt; creates an ordered list.&amp;lt;br&amp;gt;&lt;br&gt;
The items are displayed with numbers.&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;What is &amp;lt;li&amp;gt; tag?&amp;lt;br&amp;gt;&lt;br&gt;
&amp;lt;li&amp;gt; means list item.&amp;lt;br&amp;gt;&lt;br&gt;
It is used inside &amp;lt;ul&amp;gt; or &amp;lt;ol&amp;gt;.&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br&gt;
&amp;lt;/ol&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;p&amp;gt;25.What is padding?&amp;lt;br&amp;gt;&lt;br&gt;
Padding is the space inside an element.&amp;lt;br&amp;gt;&lt;br&gt;
It creates space between content and the border.&amp;lt;/p&amp;gt;&lt;br&gt;
&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;

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