<?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: Mohan Mogi</title>
    <description>The latest articles on DEV Community by Mohan Mogi (@mohan_mogi_61a3367e66b67c).</description>
    <link>https://dev.to/mohan_mogi_61a3367e66b67c</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%2F3756893%2F42392817-0085-43da-a370-04eacb314473.png</url>
      <title>DEV Community: Mohan Mogi</title>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mohan_mogi_61a3367e66b67c"/>
    <language>en</language>
    <item>
      <title>React Hooks Explained in Simple Terms</title>
      <dc:creator>Mohan Mogi</dc:creator>
      <pubDate>Tue, 02 Jun 2026 10:28:11 +0000</pubDate>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c/react-hooks-explained-in-simple-terms-3gnf</link>
      <guid>https://dev.to/mohan_mogi_61a3367e66b67c/react-hooks-explained-in-simple-terms-3gnf</guid>
      <description>&lt;p&gt;React Hooks: A Beginner-Friendly Guide&lt;/p&gt;

&lt;p&gt;React Hooks are special functions introduced in React 16.8 that allow developers to use state and other React features inside functional components. Hooks make code simpler, cleaner, and easier to maintain compared to class components.&lt;/p&gt;

&lt;p&gt;What Are React Hooks?&lt;/p&gt;

&lt;p&gt;Hooks are built-in React functions that let you "hook into" React features such as state management, lifecycle methods, context, and more. They help developers write reusable and organized code without using class components.&lt;/p&gt;

&lt;p&gt;Why Use Hooks?&lt;br&gt;
Simpler and cleaner code&lt;br&gt;
Better code reusability&lt;br&gt;
Easier state management&lt;br&gt;
Improved readability&lt;br&gt;
No need for class components&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Understanding useEffect in React:</title>
      <dc:creator>Mohan Mogi</dc:creator>
      <pubDate>Fri, 29 May 2026 08:05:09 +0000</pubDate>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c/understanding-useeffect-in-react-18cn</link>
      <guid>https://dev.to/mohan_mogi_61a3367e66b67c/understanding-useeffect-in-react-18cn</guid>
      <description>&lt;p&gt;useEffect:&lt;br&gt;
useEffect is a React Hook that lets you perform side effects in a functional component.&lt;br&gt;
Common side effects are:&lt;br&gt;
Fetching data from an API,Updating the document title,Setting timers (setInterval, setTimeout),Adding event listeners,Accessing local storage.useEffect accepts two arguments. The second argument is optional.useEffect(, ).&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Understanding React Hooks with Practical Examples</title>
      <dc:creator>Mohan Mogi</dc:creator>
      <pubDate>Thu, 28 May 2026 07:25:51 +0000</pubDate>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c/understanding-react-hooks-with-practical-examples-47ml</link>
      <guid>https://dev.to/mohan_mogi_61a3367e66b67c/understanding-react-hooks-with-practical-examples-47ml</guid>
      <description>&lt;p&gt;what is a hook in react?&lt;br&gt;
   A Hook is a special React function that allows functional components to use React features such as state, lifecycle behavior, refs, and context without using class components.&lt;br&gt;
   They provide a more direct API to React concepts like props, state, context, refs, and lifecycle.&lt;br&gt;
   Before Hooks, state and lifecycle methods could only be used in class components.&lt;br&gt;
   Hooks were introduced in React 16.8 to make functional components more powerful.&lt;/p&gt;

&lt;p&gt;1.React useState hook:&lt;br&gt;
   The react usestate hook allows us to track state in a functional components.&lt;br&gt;
   State generally refers to data or properties that need to be tracking in an application.&lt;br&gt;
   useState is a React Hook used to store and update data (state) in a functional component.&lt;/p&gt;

&lt;p&gt;syntax&lt;br&gt;
const [state, setState] = useState(initialValue);&lt;/p&gt;

&lt;p&gt;code&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%2F5wswc6p7zk8d2tfzqgtn.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%2F5wswc6p7zk8d2tfzqgtn.png" alt=" " width="436" height="253"&gt;&lt;/a&gt;&lt;br&gt;
output&lt;br&gt;
three times click button.&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%2Ftfyv0ndnh5z069g29mds.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%2Ftfyv0ndnh5z069g29mds.png" alt=" " width="797" height="101"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How it works&lt;br&gt;
 Initial value:&lt;br&gt;
   count = 0&lt;/p&gt;

&lt;p&gt;When button is clicked:&lt;br&gt;
setCount(count + 1);&lt;/p&gt;

&lt;p&gt;Value becomes:&lt;br&gt;
  count = 1&lt;br&gt;
  count = 2&lt;br&gt;
  count = 3&lt;/p&gt;

&lt;p&gt;Why use useState?&lt;br&gt;
 React updates the screen whenever the state changes.Data changes, React automatically re-renders the component and updates the UI.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>react</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Understanding Closures in JavaScript: A Complete Beginner Guide</title>
      <dc:creator>Mohan Mogi</dc:creator>
      <pubDate>Wed, 27 May 2026 06:20:41 +0000</pubDate>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c/understanding-closures-in-javascript-a-complete-beginner-guide-n39</link>
      <guid>https://dev.to/mohan_mogi_61a3367e66b67c/understanding-closures-in-javascript-a-complete-beginner-guide-n39</guid>
      <description>&lt;p&gt;closure;&lt;br&gt;
 In Javascript,closure is a feature.Closure is an inner function is retains accces to the variables of its outer(enclosing) function,even after that outer function has finished executing.A closure is the combination of a function and the lexical environment in which it was declared.&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%2Fdygrkslw3r1jgwcuftog.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%2Fdygrkslw3r1jgwcuftog.png" alt=" " width="588" height="458"&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%2Fx8kdyekmdqm9xywo9h2c.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%2Fx8kdyekmdqm9xywo9h2c.png" alt=" " width="299" height="200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation:&lt;br&gt;
Step 1: &lt;br&gt;
outerFunction() runs&lt;br&gt;
let count = 0;&lt;/p&gt;

&lt;p&gt;Variable count is created.&lt;/p&gt;

&lt;p&gt;Memory:&lt;/p&gt;

&lt;p&gt;count = 0&lt;/p&gt;

&lt;p&gt;Step 2: &lt;br&gt;
innerFunction is created&lt;br&gt;
function innerFunction() {&lt;br&gt;
  count++;&lt;br&gt;
  console.log("Count:", count);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;innerFunction uses count from its parent function.&lt;/p&gt;

&lt;p&gt;Step 3:&lt;br&gt;
 Return inner function&lt;br&gt;
return innerFunction;&lt;br&gt;
const counter = outerFunction();&lt;/p&gt;

&lt;p&gt;Now counter stores innerFunction.&lt;/p&gt;

&lt;p&gt;Normally outerFunction() would finish and remove its variables from memory.&lt;/p&gt;

&lt;p&gt;But because innerFunction still needs count, JavaScript keeps count alive.&lt;/p&gt;

&lt;p&gt;This is called Closure.&lt;/p&gt;

&lt;p&gt;Step 4:&lt;br&gt;
First call&lt;br&gt;
counter();&lt;/p&gt;

&lt;p&gt;Runs:&lt;/p&gt;

&lt;p&gt;count++;&lt;/p&gt;

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

&lt;p&gt;count = 0&lt;/p&gt;

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

&lt;p&gt;count = 1&lt;/p&gt;

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

&lt;p&gt;Count: 1&lt;/p&gt;

&lt;p&gt;flow view:&lt;br&gt;
outerFunction()&lt;br&gt;
      |&lt;br&gt;
count = 0&lt;br&gt;
      |&lt;br&gt;
return innerFunction&lt;br&gt;
      |&lt;br&gt;
counter()&lt;br&gt;
      |&lt;br&gt;
count = 1&lt;/p&gt;

&lt;p&gt;counter()&lt;br&gt;
      |&lt;br&gt;
count = 2&lt;/p&gt;

&lt;p&gt;counter()&lt;br&gt;
      |&lt;br&gt;
count = 3&lt;/p&gt;

&lt;p&gt;counter()&lt;br&gt;
      |&lt;br&gt;
count = 4&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>JavaScript DOM Practice: Exercises for Beginners</title>
      <dc:creator>Mohan Mogi</dc:creator>
      <pubDate>Wed, 29 Apr 2026 07:52:27 +0000</pubDate>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c/javascript-dom-practice-exercises-for-beginners-1hi1</link>
      <guid>https://dev.to/mohan_mogi_61a3367e66b67c/javascript-dom-practice-exercises-for-beginners-1hi1</guid>
      <description>&lt;p&gt;1.Change the Text and style&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%2Fzfykev0b60sh7biwgugv.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%2Fzfykev0b60sh7biwgugv.png" alt=" " width="639" height="196"&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%2Fa2npaai8dzrbm6poxy6x.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%2Fa2npaai8dzrbm6poxy6x.png" alt=" " width="228" height="108"&gt;&lt;/a&gt;&lt;br&gt;
after click&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%2Fwhlqcvs8j635y8xp694s.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%2Fwhlqcvs8j635y8xp694s.png" alt=" " width="198" height="125"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.toggle on off bulb&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%2Fayitbkqgct6w1p5kl44m.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%2Fayitbkqgct6w1p5kl44m.png" alt=" " width="748" height="450"&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%2Fapb8o3uxhjwv9cxryum1.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%2Fapb8o3uxhjwv9cxryum1.png" alt=" " width="309" height="289"&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;3.Count of the characters&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%2F81l3o32egjtoqh6bfa1p.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%2F81l3o32egjtoqh6bfa1p.png" alt=" " width="538" height="236"&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%2Ffrrbhga6uk3y6jrpynyi.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%2Ffrrbhga6uk3y6jrpynyi.png" alt=" " width="727" height="140"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>DOM Basic Interview Questions</title>
      <dc:creator>Mohan Mogi</dc:creator>
      <pubDate>Tue, 28 Apr 2026 06:31:05 +0000</pubDate>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c/dom-basic-interview-questions-56n1</link>
      <guid>https://dev.to/mohan_mogi_61a3367e66b67c/dom-basic-interview-questions-56n1</guid>
      <description>&lt;p&gt;1.What is dom?&lt;br&gt;
 Dom stands for&lt;br&gt;
 D - Document&lt;br&gt;
 O - Object&lt;br&gt;
 M - Model&lt;br&gt;
 Dom is a programming interface for html documents.It represents the page as a tree of objects,so JavaScript can manipulate structure, style, and content dynamically.&lt;/p&gt;

&lt;p&gt;2.What is difference between dom and html?&lt;br&gt;
 DOM&lt;br&gt;
 Dom  is a tree-like object model.Represents the current state for interaction.Dynamic; it updates in real-time.Manipulated by JavaScript to change the page.&lt;/p&gt;

&lt;p&gt;HTML&lt;br&gt;
 Html is a markup language.Defines the initial structure and content.Static; it doesn't change once sent.Written by developers, read by browsers.&lt;/p&gt;

&lt;p&gt;3.what is difference betweenand getelementbyid and queryselector?&lt;br&gt;
  getelementbyid:&lt;br&gt;
  Only ID strings (e.g., 'myID').Single element matching the ID.Faster directly accesses the element by ID.Faster; directly accesses the element by ID.&lt;/p&gt;

&lt;p&gt;queryselector&lt;br&gt;
  Any CSS selector (e.g., '#myID', '.myClass', 'div &amp;gt; p').The first element matching the selector.Slightly slower must parse CSS selectors.Available on document and any individual element.&lt;/p&gt;

&lt;p&gt;4.How to change the content of HTML elements&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%2Fmijinrg6itf6119jxjpw.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%2Fmijinrg6itf6119jxjpw.png" alt=" " width="589" height="193"&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%2Fmu5fyxf98ygwtlgqfd0v.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%2Fmu5fyxf98ygwtlgqfd0v.png" alt=" " width="230" height="107"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;after click&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%2Fnmxiwwd6rq0igzo6kurb.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%2Fnmxiwwd6rq0igzo6kurb.png" alt=" " width="237" height="127"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>interview</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Object &amp; Array scenario Questions</title>
      <dc:creator>Mohan Mogi</dc:creator>
      <pubDate>Fri, 17 Apr 2026 06:22:32 +0000</pubDate>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c/object-array-scenario-questions-33nc</link>
      <guid>https://dev.to/mohan_mogi_61a3367e66b67c/object-array-scenario-questions-33nc</guid>
      <description>&lt;p&gt;1.User profile update&lt;br&gt;
const user = {&lt;br&gt;
  name: "Vijay",&lt;br&gt;
  age:25,&lt;br&gt;
  email:"&lt;a href="mailto:vijay@gmail.com"&gt;vijay@gmail.com&lt;/a&gt;"&lt;br&gt;
};&lt;br&gt;
Update email and add anew property isActive = true.&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%2Feywu65wv8albdfo5pg0g.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%2Feywu65wv8albdfo5pg0g.png" alt=" " width="800" height="119"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Shopping Cart Total&lt;br&gt;
 const cart = [&lt;br&gt;
  {name: "shirt", price:500},&lt;br&gt;
  {name: "shoes", price:1500},&lt;br&gt;
  {name: "cap", price:300}&lt;br&gt;
];&lt;br&gt;
Calculate total price.&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%2Fkg11wwehu3lmndjjsqjg.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%2Fkg11wwehu3lmndjjsqjg.png" alt=" " width="800" height="156"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.Find Speccific Object&lt;br&gt;
onst users = [&lt;br&gt;
  { name: "Vijay, age:25"},&lt;br&gt;
  { name: "Arun", age:30},&lt;br&gt;
  { name: "Kumar", age:28}&lt;br&gt;
];&lt;br&gt;
From an array of users,find the user whose name is "arun".&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%2Fhtady4s2urv5dtxfl0i1.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%2Fhtady4s2urv5dtxfl0i1.png" alt=" " width="800" height="186"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.count items in Object&lt;br&gt;
const fruits = {&lt;br&gt;
apple:2,&lt;br&gt;
banana: 5,&lt;br&gt;
mango: 3&lt;br&gt;
};&lt;br&gt;
fine the total number of fruits.&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%2Fg87cw3njcvi8je40solb.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%2Fg87cw3njcvi8je40solb.png" alt=" " width="800" height="152"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Javascript Array Iteration methods;</title>
      <dc:creator>Mohan Mogi</dc:creator>
      <pubDate>Thu, 16 Apr 2026 09:05:33 +0000</pubDate>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c/javascript-array-iteration-methods-4jmk</link>
      <guid>https://dev.to/mohan_mogi_61a3367e66b67c/javascript-array-iteration-methods-4jmk</guid>
      <description>&lt;p&gt;Array Iteration Methods:&lt;br&gt;
JavaScript array iteration means the process of going through each element of an array one by one and performing some operation on it.&lt;/p&gt;

&lt;p&gt;Types of Array iteration Methods:&lt;br&gt;
1.Array forEach&lt;br&gt;
2.Array map()&lt;br&gt;
3.Array flatMap()&lt;br&gt;
4.Array filter()&lt;br&gt;
5.Array reduce()&lt;br&gt;
6.Array reduceRight()&lt;br&gt;
7.Array every()&lt;br&gt;
8.Array some()&lt;br&gt;
9.Array from()&lt;br&gt;
10.Array keys()&lt;br&gt;
11.Array entries()&lt;br&gt;
12.Array with()&lt;br&gt;
13.Array Spread (...)&lt;br&gt;
14.Array Rest (...) &lt;/p&gt;

&lt;p&gt;1.Array forEach:&lt;br&gt;
  This method calls a fuction (call back function) once for each array element.No return value.&lt;/p&gt;

&lt;p&gt;Syntax&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%2Foawa7yapdxv9n0uaaz6s.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%2Foawa7yapdxv9n0uaaz6s.png" alt=" " width="800" height="233"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;👉 Explanation:&lt;br&gt;
1)Run each element&lt;br&gt;
2)Runs the function&lt;br&gt;
3)Does not create a new array.&lt;/p&gt;

&lt;p&gt;2.Array map()&lt;br&gt;
  This method creates a new array by performing function on each array element.It's not execute the function for array elements without values.this method not change the original array.it"s create a duplicate array.&lt;br&gt;
the function takes 3 arguments:&lt;br&gt;
 The item value&lt;br&gt;
 The item index&lt;br&gt;
 The array.&lt;/p&gt;

&lt;p&gt;Syntax&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%2Fwh19c67mk4vk8byo8led.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%2Fwh19c67mk4vk8byo8led.png" alt=" " width="800" height="165"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;👉 Explanation:&lt;br&gt;
1.Takes each value&lt;br&gt;
2.Applies logic&lt;br&gt;
3.Stores results in a new array.&lt;/p&gt;

&lt;p&gt;3.Array flatMap()&lt;br&gt;
  This method first maps all elements of an array and then creates a new array by flattening the array.&lt;br&gt;
syntax&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%2F4czbzzgawngqeybj2ztd.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%2F4czbzzgawngqeybj2ztd.png" alt=" " width="800" height="167"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;👉 Explanation:&lt;br&gt;
1.First maps values&lt;br&gt;
2.Then flattens one level.&lt;/p&gt;

&lt;p&gt;4.Array filter()&lt;br&gt;
  This  method creates a new array with array elements that pass a test.&lt;br&gt;
The function takes 3 arguments:&lt;br&gt;
 The item value&lt;br&gt;
 The item index&lt;br&gt;
 The array itself&lt;/p&gt;

&lt;p&gt;Syntax&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%2F305unc26djcf0b6bb57j.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%2F305unc26djcf0b6bb57j.png" alt=" " width="800" height="162"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Why javascript is single Threaded</title>
      <dc:creator>Mohan Mogi</dc:creator>
      <pubDate>Wed, 15 Apr 2026 05:24:02 +0000</pubDate>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c/why-javascript-is-single-threaded-4okb</link>
      <guid>https://dev.to/mohan_mogi_61a3367e66b67c/why-javascript-is-single-threaded-4okb</guid>
      <description>&lt;p&gt;The Origin: Designed for the Browser:&lt;br&gt;
JavaScript was created by Brendan Eich in 1995 to run inside web browsers like Netscape Navigator.At that time, the goal was simple, Make web pages interactive (e.g., form validation, button clicks)To achieve this safely and simply, JavaScript was designed as:&lt;br&gt;
Single-threaded run one task at a time.&lt;/p&gt;

&lt;p&gt;Single-Threaded Mean?&lt;br&gt;
Single-threaded is Only one operation runs at a time&lt;br&gt;
No true parallel execution in the main thread.&lt;br&gt;
Example:&lt;br&gt;
console.log("A");&lt;br&gt;
console.log("B");&lt;br&gt;
console.log("C");&lt;br&gt;
Output:&lt;br&gt;
A&lt;br&gt;
B&lt;br&gt;
C&lt;/p&gt;

</description>
    </item>
    <item>
      <title>“JavaScript Array Methods Explained Simply”</title>
      <dc:creator>Mohan Mogi</dc:creator>
      <pubDate>Thu, 09 Apr 2026 05:17:33 +0000</pubDate>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c/array-methods-53ii</link>
      <guid>https://dev.to/mohan_mogi_61a3367e66b67c/array-methods-53ii</guid>
      <description>&lt;p&gt;ARRAY:&lt;br&gt;
An array is an object type,it is used for storing data collections.Multiple values store in a single variable.&lt;/p&gt;

&lt;p&gt;FEATURES OF JAVASCRIPT ARRAYS are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;ELEMENT&lt;br&gt;
An array a list of values are known as elements.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ORDERED&lt;br&gt;
Array elements are ordered&lt;br&gt;
Based on their index. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ZERO INDEXED&lt;br&gt;
The first element is index 0,&lt;br&gt;
Second element is 1.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;HETEROGENEOUS &lt;br&gt;
Arrays can store elements of different datatypes.&lt;br&gt;
(Strings,numbers,objects and other arrays)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;WHY USE ARRAY:&lt;/p&gt;

&lt;p&gt;let a = 10;&lt;br&gt;
let b = 20;&lt;br&gt;
let c = 30;&lt;br&gt;
 This is ok for 3 variables,how can manage 200,300 variables?.So use array.An array can store many values under a single name,can acces the values by referring to an index number.&lt;/p&gt;

&lt;p&gt;Array syntax&lt;br&gt;
let numbers = [10, 20, 30];&lt;/p&gt;

&lt;p&gt;console.log(numbers[1]);&lt;br&gt;
Output 20 &lt;/p&gt;

&lt;p&gt;BASIC ARRAY METHODSS &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Array length &lt;/li&gt;
&lt;li&gt;Array toString() – Convert to string&lt;/li&gt;
&lt;li&gt;Array at() – &lt;/li&gt;
&lt;li&gt;Array join()&lt;/li&gt;
&lt;li&gt;Array pop() – Remove last element&lt;/li&gt;
&lt;li&gt;Array push() – Add at end&lt;/li&gt;
&lt;li&gt;Array shift()&lt;/li&gt;
&lt;li&gt;Array unshift()&lt;/li&gt;
&lt;li&gt;Array isArray()&lt;/li&gt;
&lt;li&gt;Array delete()&lt;/li&gt;
&lt;li&gt;Array concat()&lt;/li&gt;
&lt;li&gt;Array copyWithin()&lt;/li&gt;
&lt;li&gt;Array flat()&lt;/li&gt;
&lt;li&gt;Array slice()&lt;/li&gt;
&lt;li&gt;Array splice()&lt;/li&gt;
&lt;li&gt;Array toSpliced()&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;1.Array length &lt;br&gt;
  Array length means length property returns the length(count,size)of an array.&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%2Fj4oe4x9u9anj697wymo7.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.amazonaws.com%2Fuploads%2Farticles%2Fj4oe4x9u9anj697wymo7.jpg" alt=" " width="800" height="198"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation:&lt;br&gt;
🔹The array has 3 values,so  length is 3.&lt;br&gt;
🔹Even though index starts at 0, length counts from 1.&lt;/p&gt;

&lt;p&gt;2.Array tostring()&lt;br&gt;
  The tostring methods returns the elements as of array commas as a seperated string.&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%2For9tx7vzk7d11s5vd6di.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%2For9tx7vzk7d11s5vd6di.png" alt=" " width="800" height="127"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation&lt;br&gt;
🔹The .toString() method converts the array into a string&lt;br&gt;
🔹It automatically adds commas ( , ) between values&lt;br&gt;
🔹output (1o,20,30)&lt;/p&gt;

&lt;p&gt;3.Array at()&lt;br&gt;
  The at() methods returns an indexed element from an array.Including negative index.&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%2Flfgfkb21hvcdgoc2dk7h.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%2Flfgfkb21hvcdgoc2dk7h.png" alt=" " width="800" height="173"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation&lt;br&gt;
🔹at(0) → first element&lt;br&gt;
🔹at(1) → second element&lt;br&gt;
🔹at(2) → third element&lt;br&gt;
🔹output&lt;br&gt;
    10&lt;br&gt;
    20&lt;br&gt;
    30&lt;/p&gt;

&lt;p&gt;4.Array join()&lt;br&gt;
  This method is joins all array element into a string.its react like array tostring(),but add in specify the seperator.&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%2Fznrm0f8k2p1owyl575yf.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%2Fznrm0f8k2p1owyl575yf.png" alt=" " width="800" height="149"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation&lt;br&gt;
🔹 Converts array to string&lt;br&gt;
🔹 Does not change original array&lt;br&gt;
🔹 output( 10 20 30 )&lt;/p&gt;

&lt;p&gt;Add specify seperator&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%2Flb3ymcgyvd9sbtn3c1i9.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%2Flb3ymcgyvd9sbtn3c1i9.png" alt=" " width="800" height="148"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation&lt;br&gt;
🔹 add in specify seperator&lt;br&gt;
🔹 output(10*20*30)&lt;/p&gt;

&lt;p&gt;5.Array pop()&lt;br&gt;
  Array pop method remove the last element from an array.&lt;br&gt;
The pop() method returns the value that was "popped out":&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%2Fyyycric19p87smucdnf7.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%2Fyyycric19p87smucdnf7.png" alt=" " width="800" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation&lt;br&gt;
🔹Removes the last element  30&lt;br&gt;
🔹Returns the removed value 30&lt;br&gt;
🔹Updates the array → [10, 20]&lt;br&gt;
🔹Output:&lt;br&gt;
  30&lt;br&gt;
  [ 10, 20 ]&lt;/p&gt;

&lt;p&gt;6.Array push()&lt;br&gt;
  Array push() method is one or more new element add to an array at the last.&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%2F28l9z6jch803axfr1q31.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%2F28l9z6jch803axfr1q31.png" alt=" " width="800" height="142"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation &lt;br&gt;
🔹Adds element to the end&lt;br&gt;
🔹Updates the original array.&lt;/p&gt;

&lt;p&gt;push() returns the new arraylength.&lt;br&gt;
push()return value&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%2Fjv9m8a8c2nc7zaxkyrqd.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%2Fjv9m8a8c2nc7zaxkyrqd.png" alt=" " width="800" height="148"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation&lt;br&gt;
🔹Adds elements to the end&lt;br&gt;
🔹Changes the original array&lt;br&gt;
🔹Returns new length&lt;/p&gt;

&lt;p&gt;7.Array shift()&lt;br&gt;
  This method is remove fisrt element from an array and shifts all other element to a lower index.The shift() method returns the value that was "shifted out":&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%2Fpkcg08194unfiaq5p06n.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%2Fpkcg08194unfiaq5p06n.png" alt=" " width="800" height="165"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation&lt;br&gt;
🔹Removes the first element → 10&lt;br&gt;
🔹Returns the removed value → 10&lt;br&gt;
🔹Updates the array → [20, 30]&lt;/p&gt;

&lt;p&gt;8.Array unshift()&lt;br&gt;
 The unshift() method is used to add one or more elements to the beginning (start) of an array.&lt;/p&gt;

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

&lt;p&gt;Explanatioon&lt;br&gt;
🔹Adds element at the start&lt;br&gt;
🔹Moves existing elements to the right&lt;/p&gt;

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

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

&lt;p&gt;Explaation&lt;br&gt;
🔹 Adds elements to the beginning&lt;br&gt;
🔹 Changes the original array&lt;br&gt;
🔹 Returns new length&lt;/p&gt;

&lt;p&gt;9.Array isArray()&lt;br&gt;
Array.isArray() is used to check whether a value is an array or not.&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%2Fw1zjg7idvpeimz7ax91g.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%2Fw1zjg7idvpeimz7ax91g.png" alt=" " width="800" height="150"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation&lt;br&gt;
🔹true means its array&lt;br&gt;
🔹false means its not array&lt;/p&gt;

&lt;p&gt;10.array delete()&lt;br&gt;
It is a delete keyword, but it is not recommended for arrays &lt;br&gt;
Because it removes the value but keeps an empty slot (hole).&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%2Fxomqyzyo07lmune24qwv.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%2Fxomqyzyo07lmune24qwv.png" alt=" " width="800" height="133"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation&lt;br&gt;
🔹Index still exists&lt;br&gt;
🔹Creates empty (undefined) space&lt;/p&gt;

&lt;p&gt;11.Array concat()&lt;br&gt;
The concat() method creates a new array by merging (concatenating) existing arrays:&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%2Fda3ejk46x5pj8eziobqs.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%2Fda3ejk46x5pj8eziobqs.png" alt=" " width="800" height="174"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Explanation:&lt;br&gt;
🔹arr1 contains [10, 20]&lt;br&gt;
🔹arr2 contains [30]&lt;br&gt;
🔹concat() joins both arrays and returns a new array&lt;br&gt;
🔹Original arrays are not changed&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>JAVASCRIPT OBJECT FUCTIONS</title>
      <dc:creator>Mohan Mogi</dc:creator>
      <pubDate>Wed, 08 Apr 2026 05:58:13 +0000</pubDate>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c/javascript-object-fuctions-mii</link>
      <guid>https://dev.to/mohan_mogi_61a3367e66b67c/javascript-object-fuctions-mii</guid>
      <description>&lt;p&gt;OBJECT CONSTRUCTOR FUNCTIONS:&lt;br&gt;
 The constructor method for creating and initailizing object.Sometimes create many object of the same type,to create an objecct constructor function.constructor functions with an first letter start with an upper case letter.&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%2Fgy9q28z2oe83y8vdlnqf.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%2Fgy9q28z2oe83y8vdlnqf.png" alt=" " width="800" height="122"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>OBJECT LEARN CRUD METHODS</title>
      <dc:creator>Mohan Mogi</dc:creator>
      <pubDate>Tue, 07 Apr 2026 06:30:43 +0000</pubDate>
      <link>https://dev.to/mohan_mogi_61a3367e66b67c/object-learn-crud-methods-3gi9</link>
      <guid>https://dev.to/mohan_mogi_61a3367e66b67c/object-learn-crud-methods-3gi9</guid>
      <description>&lt;p&gt;OBJECT:&lt;br&gt;
 An object is stores a collection of key value pairs.&lt;br&gt;
 key is property name,value is store any datatypes.&lt;/p&gt;

&lt;p&gt;CRUD:&lt;br&gt;
C-Create (create object)&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%2F03a4acefxa9u54fvrjd5.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%2F03a4acefxa9u54fvrjd5.png" alt=" " width="240" height="303"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;R-Read (read object)&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%2Fcgcp4swb6tzxbmialew2.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%2Fcgcp4swb6tzxbmialew2.png" alt=" " width="800" height="203"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;U-Update (update values in object)&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%2F3ps997l5ntoym66lt2qw.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%2F3ps997l5ntoym66lt2qw.png" alt=" " width="800" height="211"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;D-delete (delete values in object)&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%2F5gyd61fp4z8d2ei1pasn.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%2F5gyd61fp4z8d2ei1pasn.png" alt=" " width="800" height="217"&gt;&lt;/a&gt;&lt;/p&gt;

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