<?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: Abinaya V</title>
    <description>The latest articles on DEV Community by Abinaya V (@abinaya_v_7e6321c160544f1).</description>
    <link>https://dev.to/abinaya_v_7e6321c160544f1</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%2F3844420%2F66394160-1b8a-4e99-8016-758033e998e5.jpg</url>
      <title>DEV Community: Abinaya V</title>
      <link>https://dev.to/abinaya_v_7e6321c160544f1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abinaya_v_7e6321c160544f1"/>
    <language>en</language>
    <item>
      <title>About Hookes in React</title>
      <dc:creator>Abinaya V</dc:creator>
      <pubDate>Mon, 18 May 2026 20:32:14 +0000</pubDate>
      <link>https://dev.to/abinaya_v_7e6321c160544f1/about-hookes-in-react-m29</link>
      <guid>https://dev.to/abinaya_v_7e6321c160544f1/about-hookes-in-react-m29</guid>
      <description>&lt;h2&gt;
  
  
  React Hooks
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;React Hooks are special functions in React that let you use state and other React features inside functional components. Before Hooks, state was mainly used in class components. Hooks made functional components more powerful and easier to write.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Why Hooks are Used
&lt;/h2&gt;

&lt;p&gt;Hooks help you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Store data in components&lt;/li&gt;
&lt;li&gt;Handle user actions&lt;/li&gt;
&lt;li&gt;Manage lifecycle methods&lt;/li&gt;
&lt;li&gt;Reuse logic&lt;/li&gt;
&lt;li&gt;Work with APIs&lt;/li&gt;
&lt;li&gt;Improve code readability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Common React Hooks&lt;/strong&gt;&lt;br&gt;
   Used to store and update data.&lt;/p&gt;
&lt;h2&gt;
  
  
  Virtual DOM and Real DOM in React
&lt;/h2&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; **Real DOM**
  The Real DOM is the actual webpage structure shown in the browser.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;When HTML loads in the browser, the browser creates a tree structure called the DOM (Document Object Model).&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;**Example HTML**
   &amp;lt;h1&amp;gt;Hello&amp;lt;/h1&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;output&lt;/strong&gt;&lt;br&gt;
       Document&lt;br&gt;
 └── h1&lt;br&gt;
      └── "Hello"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Problem with Real DOM&lt;/strong&gt;&lt;br&gt;
   Updating the Real DOM is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;slow&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;expensive&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Affects performance&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Virtual DOM&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Virtual DOM is a lightweight copy of the Real DOM used by React.&lt;br&gt;
React first updates the Virtual DOM, compares changes, then updates only the changed parts in the Real DOM.&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%2Fuxpsnpzfyht1jrw6i8g8.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%2Fuxpsnpzfyht1jrw6i8g8.png" alt=" " width="628" height="324"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Diffing Algorithm in React&lt;/strong&gt;&lt;br&gt;
     The Diffing Algorithm is the process React uses to compare:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;old virtual DOM&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;new Virtual DOM&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;and find what changed.&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Basic function in React</title>
      <dc:creator>Abinaya V</dc:creator>
      <pubDate>Thu, 14 May 2026 16:50:30 +0000</pubDate>
      <link>https://dev.to/abinaya_v_7e6321c160544f1/basic-function-in-react-3fne</link>
      <guid>https://dev.to/abinaya_v_7e6321c160544f1/basic-function-in-react-3fne</guid>
      <description>&lt;p&gt;&lt;strong&gt;App jsx&lt;/strong&gt;&lt;br&gt;
    App.jsx is the main component file in a React application created using Vite or Create React App.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why .jsx?&lt;/strong&gt;&lt;br&gt;
    .jsx means JavaScript XML&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;It allows writing HTML inside JavaScript:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  example
&lt;/h2&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; const element = &amp;lt;h1&amp;gt;Hello&amp;lt;/h1&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;JSX Rules in React&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Return Only One Parent Element

2. Close All Tags

3. Use className Instead of class

4. Use Curly Braces {} for JavaScript

5. Inline CSS Uses Object

6. Attribute Names Use camelCase

7. JavaScript Expressions Allowed

8. Components Start with Capital Letter

9. Comments in JSX

10. Use htmlFor Instead of for.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Components in React&lt;/strong&gt;&lt;br&gt;
      Components are reusable pieces of UI in React.&lt;br&gt;
      They help divide the application into small independent parts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Examples
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Header&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Navbar&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Footer&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Login Form&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Card&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>javascript</category>
      <category>react</category>
    </item>
    <item>
      <title>React in javascript</title>
      <dc:creator>Abinaya V</dc:creator>
      <pubDate>Thu, 14 May 2026 08:38:21 +0000</pubDate>
      <link>https://dev.to/abinaya_v_7e6321c160544f1/react-in-javascript-57i4</link>
      <guid>https://dev.to/abinaya_v_7e6321c160544f1/react-in-javascript-57i4</guid>
      <description>&lt;p&gt;&lt;strong&gt;React&lt;/strong&gt;&lt;br&gt;
    React is a JavaScript library used to build user interfaces, especially web applications.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;It was created by Meta (formerly Facebook).
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Simple meaning&lt;/strong&gt;&lt;br&gt;
   JavaScript → programming language&lt;br&gt;
   React → library built using JavaScript&lt;/p&gt;

&lt;p&gt;** NPM Means:**&lt;br&gt;
    npm stands for Node Package Manager.&lt;/p&gt;

&lt;p&gt;It is used to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Install JavaScript packages/libraries&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Manage project dependencies&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Run scripts in projects&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;npm comes automatically when you install Node.js.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MPA&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  In web development, MPA means Multi-Page Application.
&lt;/h2&gt;

&lt;p&gt;A Multi-Page Application loads a new HTML page from the server whenever the user moves to another page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SPA&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  SPA means Single Page Application.
&lt;/h2&gt;

&lt;p&gt;A Single Page Application loads only one HTML page initially, then updates content dynamically without reloading the entire page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Difference between libraries and frameworks?&lt;/strong&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%2Fwx8jo2h8ohkuebmeb7i1.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%2Fwx8jo2h8ohkuebmeb7i1.png" alt=" " width="693" height="290"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
    </item>
    <item>
      <title>Promise in javascript</title>
      <dc:creator>Abinaya V</dc:creator>
      <pubDate>Thu, 07 May 2026 11:26:45 +0000</pubDate>
      <link>https://dev.to/abinaya_v_7e6321c160544f1/promise-in-javascript-158e</link>
      <guid>https://dev.to/abinaya_v_7e6321c160544f1/promise-in-javascript-158e</guid>
      <description>&lt;p&gt;A Promise in JavaScript is an object that represents the result of an asynchronous operation.&lt;/p&gt;

&lt;p&gt;It helps handle tasks like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;API calls&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;File loading&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Database requests&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Timers (setTimeout)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of waiting for the task to finish, JavaScript continues running other code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Promise States
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;A Promise has 3 states:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Pending → Initial state&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Resolved / Fulfilled → Operation successful&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Rejected → Operation failed&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Promise Methods
&lt;/h2&gt;

&lt;p&gt;Method    and      Purpose&lt;/p&gt;

&lt;p&gt;.then()    -&amp;gt;       Runs when promise is successful &lt;/p&gt;

&lt;p&gt;.catch()   -&amp;gt;       Runs when promise fails   &lt;/p&gt;

&lt;p&gt;.finally() -&amp;gt;       Runs always       &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%2F7hxwhbzqlgfcorj4bwp8.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%2F7hxwhbzqlgfcorj4bwp8.png" alt=" " width="530" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9znrj917qayfwhugn79g.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%2F9znrj917qayfwhugn79g.png" alt=" " width="402" height="151"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Callback Hell.&lt;/strong&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%2F06ou4l8lnz0y6tdd1dra.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%2F06ou4l8lnz0y6tdd1dra.png" alt=" " width="432" height="323"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;output&lt;/strong&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%2Fv947m5g9tld5df2ozjcg.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%2Fv947m5g9tld5df2ozjcg.png" alt=" " width="368" height="207"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>Closure in JavaScript</title>
      <dc:creator>Abinaya V</dc:creator>
      <pubDate>Wed, 06 May 2026 13:04:11 +0000</pubDate>
      <link>https://dev.to/abinaya_v_7e6321c160544f1/closure-in-javascript-17jj</link>
      <guid>https://dev.to/abinaya_v_7e6321c160544f1/closure-in-javascript-17jj</guid>
      <description>&lt;p&gt;A closure is a function that remembers and accesses variables from its outer scope even after the outer function has finished executing.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Retains access to outer function variables.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Preserves the lexical scope.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Allows data encapsulation and privacy.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Commonly used in callbacks and asynchronous code.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;For example&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  input
&lt;/h2&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%2F5qjoiwqpfqljqi7av7lv.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%2F5qjoiwqpfqljqi7av7lv.png" alt=" " width="646" height="578"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  output
&lt;/h2&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%2F2wwp34r83lwvqvwwng2u.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%2F2wwp34r83lwvqvwwng2u.png" alt=" " width="261" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>About DOM in JavaScript and basic interview questions</title>
      <dc:creator>Abinaya V</dc:creator>
      <pubDate>Mon, 27 Apr 2026 17:50:00 +0000</pubDate>
      <link>https://dev.to/abinaya_v_7e6321c160544f1/about-dom-in-javascript-and-basic-interview-questions-17il</link>
      <guid>https://dev.to/abinaya_v_7e6321c160544f1/about-dom-in-javascript-and-basic-interview-questions-17il</guid>
      <description>&lt;p&gt;&lt;strong&gt;DOM in JavaScript&lt;/strong&gt;&lt;br&gt;
    The DOM (Document Object Model) is a programming interface that represents an HTML document as a tree structure. JavaScript uses it to access, modify, and manipulate web page content dynamically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Think of it like this:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;HTML → structure&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;DOM → tree representation of that structure&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;JavaScript → interacts with the DOM&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Core DOM Concepts (Important Topics)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Selecting elements&lt;br&gt;
 (getElementById, querySelector) &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Changing content&lt;br&gt;
 (innerHTML, textContent)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Modifying styles&lt;br&gt;
 (element.style)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Creating &amp;amp; deleting elements&lt;br&gt;
 (createElement, appendChild, remove)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Event handling&lt;br&gt;
 (addEventListener)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Traversing the DOM&lt;br&gt;
 (parent, child, sibling nodes)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  DOM TREE
&lt;/h2&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%2F36ztatxspc2d2dnf98vv.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%2F36ztatxspc2d2dnf98vv.png" alt=" " width="800" height="640"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Basic interview questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. What is the DOM?&lt;/strong&gt;&lt;br&gt;
         A tree-like representation of HTML that allows JavaScript to manipulate elements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Difference between innerHTML and textContent?&lt;/strong&gt;&lt;br&gt;
         - innerHTML → parses HTML tags&lt;br&gt;
         - textContent → only handles plain text&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.How do you select an element?&lt;/strong&gt;&lt;br&gt;
        document.getElementById("id");&lt;br&gt;
        document.querySelector(".class");&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.Root Node&lt;/strong&gt;&lt;br&gt;
        The top of the tree → document&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5.Why does this fail?&lt;/strong&gt;&lt;br&gt;
   document.getElementById("btn").addEventListener("click", fn);&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6.What is a DOM tree?&lt;/strong&gt;&lt;br&gt;
   A hierarchical structure where HTML elements are represented as nodes (parent, child, siblings).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7.What is the difference between parent, child, and sibling nodes?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Parent → contains other nodes&lt;/li&gt;
&lt;li&gt;Child → inside a parent&lt;/li&gt;
&lt;li&gt;Sibling → same parent&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;8.What is event delegation?&lt;/strong&gt;&lt;br&gt;
   Handling events at a parent level instead of adding listeners to each child.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9.Difference between DOM and BOM?&lt;/strong&gt;&lt;br&gt;
   The DOM represents the web page content, while the Browser Object Model (BOM) represents the browser environment outside the page, such as the window, history, and navigator objects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10.What are the three types of DOM?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; Core DOM - standard model for all document types.&lt;/li&gt;
&lt;li&gt; XML DOM - standard model for XML documents.&lt;/li&gt;
&lt;li&gt; HTML DOM - standard model for HTML documents.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>Tell me about yourself</title>
      <dc:creator>Abinaya V</dc:creator>
      <pubDate>Sat, 25 Apr 2026 09:38:11 +0000</pubDate>
      <link>https://dev.to/abinaya_v_7e6321c160544f1/tell-me-about-yourself-148p</link>
      <guid>https://dev.to/abinaya_v_7e6321c160544f1/tell-me-about-yourself-148p</guid>
      <description>&lt;p&gt;&lt;strong&gt;My name is Abinaya&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;“Hi, I’m currently pursuing a Java Full Stack Development course. I have hands-on experience in HTML, CSS, and JavaScript, and I’ve built a few projects using these technologies.&lt;/p&gt;

&lt;p&gt;I regularly write blogs on Dev.to about what I learn, and I push my code daily to GitLab, which helps me stay consistent and improve my development skills.&lt;/p&gt;

&lt;p&gt;I also have basic knowledge of digital marketing, which gives me some understanding of user engagement.&lt;/p&gt;

&lt;p&gt;Right now, I’m focusing on strengthening my backend skills in Java, and I’m looking forward to applying my knowledge in real-world projects and growing as a full stack developer.”&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>career</category>
      <category>java</category>
      <category>webdev</category>
    </item>
    <item>
      <title>javascript scenario questions(Variables,Operators,conditional statements)</title>
      <dc:creator>Abinaya V</dc:creator>
      <pubDate>Mon, 20 Apr 2026 17:37:33 +0000</pubDate>
      <link>https://dev.to/abinaya_v_7e6321c160544f1/javascript-scenario-questionsvariablesoperatorsconditional-statements-100l</link>
      <guid>https://dev.to/abinaya_v_7e6321c160544f1/javascript-scenario-questionsvariablesoperatorsconditional-statements-100l</guid>
      <description>&lt;p&gt;&lt;strong&gt;1.you building a login system.store username and password in variables and check whether both are filled.&lt;/strong&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%2Fa1jhflo8zx7geyql5dsg.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%2Fa1jhflo8zx7geyql5dsg.png" alt=" " width="800" height="221"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.creat variables to store a product's name,price,and stock.print a message like:&lt;br&gt;
"iphone cost ₹60000 and only 5 left in stock".&lt;/strong&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%2F8b4fb62x61ins1znsjle.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%2F8b4fb62x61ins1znsjle.png" alt=" " width="800" height="94"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.store a student's marks in 3 subject and calculate total.&lt;/strong&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%2Fypp059un067jikuv8vtw.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%2Fypp059un067jikuv8vtw.png" alt=" " width="800" height="168"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.Swap two numbers without using a third variable&lt;/strong&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%2F2j0oyxujbh3u5ee2i1su.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%2F2j0oyxujbh3u5ee2i1su.png" alt=" " width="800" height="174"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5.Create a variable that stores whether a user is logged in or not and show a welcome message.&lt;/strong&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%2Fb553t3f7xn9cvd39hler.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%2Fb553t3f7xn9cvd39hler.png" alt=" " width="800" height="202"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6.An e-commerce website gives a 10% discount.calculate final price.&lt;/strong&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%2F4v4k0fgyw946jn8n16g0.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%2F4v4k0fgyw946jn8n16g0.png" alt=" " width="800" height="158"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7.Check whether a number is even or odd using operator.&lt;/strong&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%2Fm6ht4rvigoen6lws9plf.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%2Fm6ht4rvigoen6lws9plf.png" alt=" " width="800" height="213"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8.Compare two passwords entered by user.&lt;/strong&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%2Fsfjh1k723epqlcdlq2qe.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%2Fsfjh1k723epqlcdlq2qe.png" alt="Image descriptio&amp;lt;br&amp;gt;
n" width="800" height="209"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9.A person is eligible to vote if age&amp;gt;=18.write condition&lt;/strong&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%2Fjprv0dly6q6b3p5fmgs8.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%2Fjprv0dly6q6b3p5fmgs8.png" alt=" " width="800" height="209"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10.Use logical AND to check:&lt;/strong&gt;&lt;br&gt;
         &lt;strong&gt;-User is logged in&lt;/strong&gt;&lt;br&gt;
         &lt;strong&gt;-User is admin&lt;/strong&gt;&lt;br&gt;
         ** Then allow dashboard acces**&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%2Fzvq9fnqsu7b92ttgzwks.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%2Fzvq9fnqsu7b92ttgzwks.png" alt=" " width="800" height="247"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;11.Create a function that calculate total cart amount.&lt;/strong&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%2Fd2jsua662nai1suwyeeo.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%2Fd2jsua662nai1suwyeeo.png" alt=" " width="800" height="192"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;12.create a function to greet a user by name.&lt;/strong&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%2Fuc8x1sjrfa2zf4ymo8jr.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%2Fuc8x1sjrfa2zf4ymo8jr.png" alt=" " width="11" height="1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;13.Create a function to convert celsius to Fahrenheit.&lt;/strong&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%2Fxw4y3f9tylifeo5rj2sc.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%2Fxw4y3f9tylifeo5rj2sc.png" alt=" " width="800" height="170"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;14.Create a function that returns the largest of two numbers.&lt;/strong&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%2Fflgcefodohbysposqen8.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%2Fflgcefodohbysposqen8.png" alt=" " width="800" height="243"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;15.Create a function to calculate EMI for a loan.&lt;/strong&gt;&lt;strong&gt;(TBD)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;16. If user role is "admin" show admin panel,else show user dashboard.&lt;/strong&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%2F46cskknwcpmd01tqmpvs.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%2F46cskknwcpmd01tqmpvs.png" alt=" " width="800" height="161"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;17. check if number is positive,negative, or zero.&lt;/strong&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.amazonaws.com%2Fuploads%2Farticles%2F1crif2q5p875ddsp04yr.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%2F1crif2q5p875ddsp04yr.png" alt=" " width="800" height="306"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;18. Check if a year is leap year. *&lt;/em&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%2Fgr8aycg7k1l6yjuffkq4.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%2Fgr8aycg7k1l6yjuffkq4.png" alt=" " width="800" height="183"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;19. Movie ticket pricing: Child(&amp;lt;12)-₹100 Adult-₹200. *&lt;/em&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%2Fyzdna1alh7csyk6s3bml.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%2Fyzdna1alh7csyk6s3bml.png" alt=" " width="800" height="188"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;20. If marks &amp;gt;=90-Grade A 75-Grade B else-Fail.&lt;/strong&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%2Fk8bbzkxgz782dwegjnxh.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%2Fk8bbzkxgz782dwegjnxh.png" alt=" " width="800" height="207"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>METHODS OF ARRAY</title>
      <dc:creator>Abinaya V</dc:creator>
      <pubDate>Wed, 08 Apr 2026 14:15:52 +0000</pubDate>
      <link>https://dev.to/abinaya_v_7e6321c160544f1/methods-of-array-221m</link>
      <guid>https://dev.to/abinaya_v_7e6321c160544f1/methods-of-array-221m</guid>
      <description>&lt;p&gt;&lt;strong&gt;A method in an array (JavaScript) is simply a built-in function that works on arrays.&lt;br&gt;
It helps you add, remove, search, or modify elements inside an array.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What is an Array Method?
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    An array method is a function attached to an array object.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  let fruits = ["apple", "banana", "mango"];

  fruits.push("orange"); // push() is a method

  console.log(fruits);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  basic Array Methods
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. push() → Add element at end&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    let arr = [1, 2, 3];
    arr.push(4);
    console.log(arr); // [1, 2, 3, 4]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;2. pop() → Remove last element&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;     let arr = [1, 2, 3];
     arr.pop();
     console.log(arr); // [1, 2]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;3. shift() → Remove first element&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    let arr = [1, 2, 3];
    arr.shift();
    console.log(arr); // [2, 3]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;4. unshift() → Add element at beginning&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   let arr = [1, 2, 3];
   arr.unshift(0);
   console.log(arr); // [0, 1, 2, 3]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;5. length → Find size of array&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; let arr = [10, 20, 30];
 console.log(arr.length); // 3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;6. indexOf() → Find position&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  let arr = ["a", "b", "c"];
  console.log(arr.indexOf("b")); // 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;7. includes() → Check value exists&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; let arr = [1, 2, 3];
 console.log(arr.includes(2)); // true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;8. slice() → Get part of array&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; let arr = [1, 2, 3, 4];
 console.log(arr.slice(1, 3)); // [2, 3]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;9. splice() → Add/Remove elements&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; let arr = [1, 2, 3];
 arr.splice(1, 1); // remove 1 element at index 1
 console.log(arr); // [1, 3]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;10. forEach() → Loop through array&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let arr = [1, 2, 3];
arr.forEach(function(num) {
console.log(num);
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>OBJECT IN JAVA SCRIPT</title>
      <dc:creator>Abinaya V</dc:creator>
      <pubDate>Wed, 08 Apr 2026 07:06:16 +0000</pubDate>
      <link>https://dev.to/abinaya_v_7e6321c160544f1/object-in-java-script-1gl7</link>
      <guid>https://dev.to/abinaya_v_7e6321c160544f1/object-in-java-script-1gl7</guid>
      <description>&lt;h2&gt;
  
  
  Simple Definition
&lt;/h2&gt;

&lt;p&gt;An object is a container that holds properties (data) and methods (functions).&lt;/p&gt;

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

&lt;p&gt;let person = {&lt;br&gt;
    name: "Abi",&lt;br&gt;
    age: 21,&lt;br&gt;
    city: "Chennai"&lt;br&gt;
};&lt;/p&gt;

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

&lt;h2&gt;
  
  
  1. Different Types of Values
&lt;/h2&gt;

&lt;p&gt;let keyName = "score";&lt;/p&gt;

&lt;p&gt;let student = {&lt;br&gt;
    [keyName]: 100&lt;br&gt;
};&lt;/p&gt;

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

&lt;h2&gt;
  
  
  2. Dynamic Keys
&lt;/h2&gt;

&lt;p&gt;let keyName = "score";&lt;/p&gt;

&lt;p&gt;let student = {&lt;br&gt;
    [keyName]: 100&lt;br&gt;
};&lt;/p&gt;

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

</description>
    </item>
    <item>
      <title>Objects in JavaScript</title>
      <dc:creator>Abinaya V</dc:creator>
      <pubDate>Tue, 07 Apr 2026 07:01:12 +0000</pubDate>
      <link>https://dev.to/abinaya_v_7e6321c160544f1/objects-in-javascript-3m54</link>
      <guid>https://dev.to/abinaya_v_7e6321c160544f1/objects-in-javascript-3m54</guid>
      <description>&lt;h2&gt;
  
  
  object means:
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   In JavaScript, an object is a data type used to store multiple values in one variable. These values are stored as key–value pairs.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Think of an object like a real-world object.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;**For example, a car has:**
   -color
   -brand
   -model
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;In JavaScript, that looks like this:&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%2Fkpez1dcph34d0lxl0bg5.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%2Fkpez1dcph34d0lxl0bg5.png" alt=" " width="226" height="112"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here:&lt;br&gt;
    car → the object&lt;br&gt;
    color, brand, model → keys (also called properties)&lt;br&gt;
    "red", "Toyota", "Corolla" → values  &lt;/p&gt;

&lt;h2&gt;
  
  
  CRUD means:
&lt;/h2&gt;

&lt;p&gt;C → Create&lt;br&gt;
  R → Read&lt;br&gt;
  U → Update&lt;br&gt;
  D → Delete&lt;/p&gt;

&lt;h2&gt;
  
  
  1. CREATE (Add new data)
&lt;/h2&gt;

&lt;p&gt;student.mark = 85;&lt;br&gt;
   console.log(student);&lt;br&gt;
&lt;strong&gt;output&lt;/strong&gt;&lt;br&gt;
    { name: "Abi", age: 20, course: "JavaScript", mark: 85 }&lt;/p&gt;

&lt;h2&gt;
  
  
  2. READ (Get data)
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(student.name);       // Abi
console.log(student["course"]);  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  3. UPDATE (Modify data)
&lt;/h2&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; student.age = 21;
 console.log(student.age); // 21
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  4. DELETE (Remove data)
&lt;/h2&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; delete student.course;
 console.log(student);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;output&lt;/strong&gt; &lt;br&gt;
    { name: "Abi", age: 21, mark: 90 }&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>“Function in JavaScript and its types”</title>
      <dc:creator>Abinaya V</dc:creator>
      <pubDate>Sat, 04 Apr 2026 12:15:27 +0000</pubDate>
      <link>https://dev.to/abinaya_v_7e6321c160544f1/what-is-function-in-java-script-3o87</link>
      <guid>https://dev.to/abinaya_v_7e6321c160544f1/what-is-function-in-java-script-3o87</guid>
      <description>&lt;h3&gt;
  
  
  function
&lt;/h3&gt;

&lt;p&gt;In JavaScript, a function is a block of code designed to perform a specific task. It runs only when it is called (invoked).&lt;br&gt;
Think of a function as a reusable piece of code—you write it once and use it many times.&lt;/p&gt;

&lt;h2&gt;
  
  
  Basic Syntax
&lt;/h2&gt;

&lt;p&gt;function functionName() {&lt;br&gt;
    // code to execute&lt;br&gt;
}&lt;br&gt;
Example&lt;br&gt;
function greet() {&lt;br&gt;
    console.log("Hello!");&lt;br&gt;
}&lt;/p&gt;

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

&lt;h2&gt;
  
  
  Function with Parameters
&lt;/h2&gt;

&lt;p&gt;You can pass values (called parameters) into a function:&lt;br&gt;
function greet(name) {&lt;br&gt;
    console.log("Hello " + name);&lt;br&gt;
}&lt;/p&gt;

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

&lt;p&gt;output:&lt;br&gt;
 Hello abi&lt;/p&gt;

&lt;h2&gt;
  
  
  Function with Return Value
&lt;/h2&gt;

&lt;p&gt;function add(a, b) {&lt;br&gt;
    return a + b;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;let result = add(3, 5);&lt;/p&gt;

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

&lt;h2&gt;
  
  
  Types of Functions in JavaScript
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Function Declaration(version 1)&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; function add (no1,no2){
    return no+1no+2;
 }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Function Expression(version 2)&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; const add =function(no+no2){
    return no1+no2;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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

&lt;p&gt;&lt;strong&gt;Arrow Function(version 3)&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; function greeting(name){
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;return"good moring"+name;&lt;br&gt;
}&lt;br&gt;
    &lt;strong&gt;short version for arrowtype&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;program 1 for use one argument&lt;/p&gt;

&lt;p&gt;const greeting =name=&amp;gt;"good morning"+name;&lt;br&gt;
    console.log (greeting("abi"));&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%2Fz1zmdehwdfwo16d0s5v3.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%2Fz1zmdehwdfwo16d0s5v3.png" alt=" " width="800" height="99"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;program 2 for use two argument&lt;/p&gt;

&lt;p&gt;const add=(no1,no2)=&amp;gt;no1+no2&lt;br&gt;
    console.log(add(5,10);&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foqkzfgfy7i4x3i4w1dbm.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%2Foqkzfgfy7i4x3i4w1dbm.png" alt=" " width="800" height="126"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Program for More than one line code&lt;/p&gt;

&lt;p&gt;const add(no1,no2)=&amp;gt;{&lt;br&gt;
      let result=no1,no2; &lt;br&gt;
      return result;&lt;br&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%2Fuxxrz4v0eda1bveqxnrg.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%2Fuxxrz4v0eda1bveqxnrg.png" alt=" " width="800" height="167"&gt;&lt;/a&gt;&lt;/p&gt;

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