<?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: Divya Bharathi</title>
    <description>The latest articles on DEV Community by Divya Bharathi (@divya_bharathi_38846688a5).</description>
    <link>https://dev.to/divya_bharathi_38846688a5</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%2F3339634%2F2f3f8fe4-9b2e-4132-9c65-8aeb94d34187.png</url>
      <title>DEV Community: Divya Bharathi</title>
      <link>https://dev.to/divya_bharathi_38846688a5</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/divya_bharathi_38846688a5"/>
    <language>en</language>
    <item>
      <title>What is DOM in JavaScript?</title>
      <dc:creator>Divya Bharathi</dc:creator>
      <pubDate>Wed, 30 Jul 2025 16:27:38 +0000</pubDate>
      <link>https://dev.to/divya_bharathi_38846688a5/what-is-dom-in-javascript-598h</link>
      <guid>https://dev.to/divya_bharathi_38846688a5/what-is-dom-in-javascript-598h</guid>
      <description>&lt;p&gt;Hello everyone! Today we discuss about DOM in javascript.DOM(Document Object Model) it is used to interact with the run time programs for creating some dynamic changes in the browser.Javascript interface with HTML and CSS using the DOM.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- EVENTS:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DOM events in JavaScript are actions or occurrences that happen within the browser window and can be detected and responded to using JavaScript. These events allow for dynamic and interactive web pages by enabling scripts to react to user interactions or changes in the document's state.&lt;br&gt;
   For examples:onclick,onchange,onscroll,etc...&lt;/p&gt;

&lt;p&gt;Why we use id and class? and How could it declared?&lt;br&gt;
   Id is used to call a unique or one element and it is declared as &lt;code&gt;**document.getElementById("abc")**.&lt;/code&gt;&lt;br&gt;
   Class is used to call the multiple elements and it is declared as &lt;code&gt;**document.getElementByClassName("xyz")**.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Sample example for DOM&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; &amp;lt;body&amp;gt;
    &amp;lt;h1 id="heading"&amp;gt;WEBSITE&amp;lt;/h1&amp;gt;
    &amp;lt;h1 id="Name"&amp;gt;ABC&amp;lt;/h1&amp;gt;
    &amp;lt;button onclick="changeText()"&amp;gt;changeText&amp;lt;/button&amp;gt;

    &amp;lt;script&amp;gt;
        function changeText(){
            const element = document.getElementById("Name")
            element.innerHTML="Divyabharathi";
            element.style.color="Blue";
        }
    &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Conditional Statement in Javascript</title>
      <dc:creator>Divya Bharathi</dc:creator>
      <pubDate>Thu, 10 Jul 2025 15:13:24 +0000</pubDate>
      <link>https://dev.to/divya_bharathi_38846688a5/conditional-statement-in-javascript-1o51</link>
      <guid>https://dev.to/divya_bharathi_38846688a5/conditional-statement-in-javascript-1o51</guid>
      <description>&lt;p&gt;Hello friend,today I'm going to share you what i learn about conditional statement in Javascript. &lt;br&gt;
Some primary conditional statements in Javascript include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;if statement&lt;/li&gt;
&lt;li&gt;if...else statement&lt;/li&gt;
&lt;li&gt;if...else if...else statement&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;em&gt;1.if statement *&lt;/em&gt;&lt;br&gt;
    This statement executes a block of code only if a specified condition is true.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (condition) {
        // Code to be executed if condition is true
    }   
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2.if...else statement&lt;/strong&gt;&lt;br&gt;
    This statement executes one block of code if the condition is true and another block of code if the condition is false.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (condition) {
        // Code to be executed if condition is true
    } else {
        // Code to be executed if condition is false
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3.if...else if...else statement&lt;/strong&gt;&lt;br&gt;
    This statement allows for checking multiple conditions sequentially. If the first if condition is false, it proceeds to check the else if conditions, and if none of the if or else if conditions are true, the else block is executed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; if (condition1) {
        // Code to be executed if condition1 is true
    } else if (condition2) {
        // Code to be executed if condition2 is true
    } else {
        // Code to be executed if none of the above conditions are true
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
 To understanding this type of conditional statement is very simple when you can think it's logical to solve the problem or code as easy.So first understand the logic and then give the condition. &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>coding</category>
    </item>
    <item>
      <title>Introduction about myself</title>
      <dc:creator>Divya Bharathi</dc:creator>
      <pubDate>Wed, 09 Jul 2025 18:08:48 +0000</pubDate>
      <link>https://dev.to/divya_bharathi_38846688a5/introduction-about-myself-6mn</link>
      <guid>https://dev.to/divya_bharathi_38846688a5/introduction-about-myself-6mn</guid>
      <description>&lt;p&gt;Hello friends,This is Divya Bharathi from Vaniyambadi.I'm recently joined in the payilagam institute at Chennai for learning more techniques and coding to improve myself as a software developer.&lt;br&gt;
   This is my first blog in dev.to and i wish to share my experience about payilagam because I ever seen this type of institute for pleasant and Effortless Learning.&lt;br&gt;
   This kind of institute helps me to learn more with full of comfort and I believe myself to try more if it is positive or negative i need to learn by making mistakes or good things.&lt;br&gt;
  Ok friends I'll share more in my next blog... bye &lt;/p&gt;

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