<?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: JEGADESHWARAN B</title>
    <description>The latest articles on DEV Community by JEGADESHWARAN B (@jegadeshwaran_b_b86e7dd1a).</description>
    <link>https://dev.to/jegadeshwaran_b_b86e7dd1a</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%2F3737530%2F6f8b34fb-ac9a-47e4-b18b-96f16a1b46f8.png</url>
      <title>DEV Community: JEGADESHWARAN B</title>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jegadeshwaran_b_b86e7dd1a"/>
    <language>en</language>
    <item>
      <title>objects in JavaScript</title>
      <dc:creator>JEGADESHWARAN B</dc:creator>
      <pubDate>Fri, 10 Apr 2026 14:41:13 +0000</pubDate>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a/objects-in-javascript-2ckl</link>
      <guid>https://dev.to/jegadeshwaran_b_b86e7dd1a/objects-in-javascript-2ckl</guid>
      <description>&lt;h1&gt;
  
  
  🧠 Objects in JavaScript — A Simple and Complete Guide
&lt;/h1&gt;

&lt;p&gt;After understanding functions as &lt;strong&gt;workers&lt;/strong&gt;, the next important concept is &lt;strong&gt;objects&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If functions are workers, then:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Objects are like real-world things that store data and behavior together.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h1&gt;
  
  
  🌱 What is an Object? (First Principle)
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;An &lt;strong&gt;object is like a person or thing&lt;/strong&gt; that has:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;properties (data)&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;actions (functions)&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  🧒 Real-Life Analogy
&lt;/h3&gt;

&lt;p&gt;Think of a &lt;strong&gt;tea shop owner&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Name → Arun&lt;/li&gt;
&lt;li&gt;Age → 25&lt;/li&gt;
&lt;li&gt;Job → Making tea&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And he can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;make tea&lt;/li&gt;
&lt;li&gt;take orders&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;👉 That is exactly what an object is.&lt;/p&gt;




&lt;h1&gt;
  
  
  ⚙️ Basic Definition
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;An &lt;strong&gt;object is a collection of key-value pairs&lt;/strong&gt;, where values can be data or functions.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h1&gt;
  
  
  ☕ Simple Example
&lt;/h1&gt;



&lt;p&gt;```javascript id="k0f8kp"&lt;br&gt;
const teaShop = {&lt;br&gt;
    owner: "Arun",&lt;br&gt;
    location: "Erode",&lt;br&gt;
    makeTea: function() {&lt;br&gt;
        console.log("Tea is ready");&lt;br&gt;
    }&lt;br&gt;
};&lt;/p&gt;

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


---

👉 Here:

* `owner`, `location` → properties
* `makeTea` → function (method)

---

# 📦 Accessing Object Data



```javascript id="3zv2n5"
console.log(teaShop.owner);       // Arun
teaShop.makeTea();                // Tea is ready
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🧠 Objects + Functions (Important Connection)
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;When a function is inside an object, it is called a &lt;strong&gt;method&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;






&lt;p&gt;```javascript id="k2p4zj"&lt;br&gt;
const user = {&lt;br&gt;
    name: "Jegan",&lt;br&gt;
    greet() {&lt;br&gt;
        console.log("Hello " + this.name);&lt;br&gt;
    }&lt;br&gt;
};&lt;/p&gt;

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


---

👉 `this.name` refers to the object itself.

---

# 🎭 The `this` Keyword

&amp;gt; `this` means “the current object”



```javascript id="9f4gq2"
const person = {
    name: "Arun",
    speak() {
        console.log(this.name);
    }
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;✔ &lt;code&gt;this&lt;/code&gt; = person object&lt;/p&gt;




&lt;h1&gt;
  
  
  🧾 Creating Objects (Different Ways)
&lt;/h1&gt;




&lt;h2&gt;
  
  
  1. Object Literal (Most Common)
&lt;/h2&gt;



&lt;p&gt;```javascript id="3xvmbu"&lt;br&gt;
const car = {&lt;br&gt;
    brand: "Toyota",&lt;br&gt;
    start() {&lt;br&gt;
        console.log("Car started");&lt;br&gt;
    }&lt;br&gt;
};&lt;/p&gt;

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


---

## 2. Constructor Function



```javascript id="0m9z1p"
function Car(brand) {
    this.brand = brand;
}

const c1 = new Car("Honda");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  3. Using &lt;code&gt;class&lt;/code&gt; (Modern Way)
&lt;/h2&gt;



&lt;p&gt;```javascript id="p5yd4o"&lt;br&gt;
class Car {&lt;br&gt;
    constructor(brand) {&lt;br&gt;
        this.brand = brand;&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

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


---

# 🔁 Objects are Dynamic

You can add or change properties anytime.



```javascript id="0z9xxf"
const user = {};

user.name = "Jegan";
user.age = 22;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🧠 Objects are Reference Types
&lt;/h1&gt;



&lt;p&gt;```javascript id="mbg1tx"&lt;br&gt;
const a = { name: "A" };&lt;br&gt;
const b = a;&lt;/p&gt;

&lt;p&gt;b.name = "B";&lt;/p&gt;

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

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


👉 Both point to the same object in memory.

---

# 🧪 Useful Object Methods

---

## Object.keys()



```javascript id="y4whbq"
Object.keys(teaShop);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Object.values()
&lt;/h2&gt;



&lt;p&gt;```javascript id="y5o0o1"&lt;br&gt;
Object.values(teaShop);&lt;/p&gt;

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


---

## Object.entries()



```javascript id="8tvjv2"
Object.entries(teaShop);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🌍 Real-World Example
&lt;/h1&gt;




&lt;h2&gt;
  
  
  User Object (CRM App)
&lt;/h2&gt;



&lt;p&gt;```javascript id="mtu3kk"&lt;br&gt;
const user = {&lt;br&gt;
    id: 1,&lt;br&gt;
    name: "Jegan",&lt;br&gt;
    email: "&lt;a href="mailto:jegan@gmail.com"&gt;jegan@gmail.com&lt;/a&gt;",&lt;br&gt;
    login() {&lt;br&gt;
        console.log("User logged in");&lt;br&gt;
    }&lt;br&gt;
};&lt;/p&gt;

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


---

## Transaction Object



```javascript id="4k2b7x"
const transaction = {
    amount: 5000,
    type: "expense",
    category: "rent"
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🔗 Objects + Functions Together
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;Objects store data&lt;br&gt;
Functions operate on data&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Together, they build applications.&lt;/p&gt;




&lt;h1&gt;
  
  
  🧠 Final Understanding
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;An object is a real-world entity in your program that groups related data and behavior together.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h1&gt;
  
  
  🧒 Simple Definition (Child Level)
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;An object is like a person or thing that has information and can do actions.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h1&gt;
  
  
  🚀 Conclusion
&lt;/h1&gt;

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

&lt;ul&gt;
&lt;li&gt;Organize data&lt;/li&gt;
&lt;li&gt;Represent real-world things&lt;/li&gt;
&lt;li&gt;Build structured applications&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;👉 In short:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Objects are containers of data and behavior in JavaScript.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;If functions are &lt;strong&gt;workers&lt;/strong&gt;,&lt;br&gt;
then objects are &lt;strong&gt;people or things those workers belong to&lt;/strong&gt;.&lt;/p&gt;




</description>
    </item>
    <item>
      <title>Function in JavaScript</title>
      <dc:creator>JEGADESHWARAN B</dc:creator>
      <pubDate>Fri, 10 Apr 2026 04:24:35 +0000</pubDate>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a/function-in-javascript-43i4</link>
      <guid>https://dev.to/jegadeshwaran_b_b86e7dd1a/function-in-javascript-43i4</guid>
      <description>&lt;h1&gt;
  
  
  🌱 What is a Function? (First Principle)
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;A &lt;strong&gt;function is like a worker&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Just like a tea master in a shop:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You give an order&lt;/li&gt;
&lt;li&gt;The tea master prepares tea&lt;/li&gt;
&lt;li&gt;The tea is given back to you&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  👉 In programming:
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;A &lt;strong&gt;function is a reusable block of code that takes input, performs a task, and optionally returns output.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h1&gt;
  
  
  ☕ Simple Example
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;makeTea&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Tea is ready&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;makeTea&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;makeTea&lt;/code&gt; = worker&lt;/li&gt;
&lt;li&gt;calling it = giving instruction&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  📥 Functions with Input (Parameters)
&lt;/h1&gt;

&lt;p&gt;Workers become more useful when they accept instructions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;makeTea&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sugar&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Tea with &lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;sugar&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt; spoons of sugar&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;makeTea&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nf"&gt;makeTea&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Same function, different results.&lt;/p&gt;




&lt;h1&gt;
  
  
  📤 Functions with Output (Return Value)
&lt;/h1&gt;

&lt;p&gt;Some workers not only do work — they give results back.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 &lt;code&gt;return&lt;/code&gt; sends the result back.&lt;/p&gt;




&lt;h1&gt;
  
  
  🧾 Types of Functions
&lt;/h1&gt;




&lt;h2&gt;
  
  
  1. Function Declaration
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Hello&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✔ Can be used before it is written (hoisting)&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Function Expression
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;greet&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Hello&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;❌ Cannot be used before definition&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Arrow Function
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;add&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✔ Short and modern syntax&lt;/p&gt;




&lt;h1&gt;
  
  
  🧠 Functions are First-Class Citizens
&lt;/h1&gt;

&lt;p&gt;In JavaScript:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Functions are treated like values.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;They can be stored in variables&lt;/li&gt;
&lt;li&gt;Passed as arguments&lt;/li&gt;
&lt;li&gt;Returned from other functions&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Example:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;sayHello&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Hello&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;fn&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;fn&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sayHello&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🔁 Callback Functions
&lt;/h1&gt;

&lt;p&gt;A &lt;strong&gt;callback&lt;/strong&gt; is a function passed into another function.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;processTask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;callback&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Processing...&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nf"&gt;callback&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;processTask&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Done!&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  ⏳ Asynchronous Functions
&lt;/h1&gt;

&lt;p&gt;JavaScript can run tasks later without stopping everything.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Task completed&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🚀 Promises
&lt;/h1&gt;

&lt;p&gt;Promises make async code cleaner.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;promise&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Success&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="nx"&gt;promise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  ✨ Async/Await
&lt;/h1&gt;

&lt;p&gt;Modern and easy way to handle async operations.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getData&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;url&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🔐 Closures
&lt;/h1&gt;

&lt;p&gt;A closure allows a function to remember its outer variables.&lt;br&gt;
&lt;/p&gt;

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

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nx"&gt;count&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;counter&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="nf"&gt;c&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="c1"&gt;// 1&lt;/span&gt;
&lt;span class="nf"&gt;c&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="c1"&gt;// 2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🧭 Scope
&lt;/h1&gt;

&lt;p&gt;Scope defines where variables can be accessed.&lt;br&gt;
&lt;/p&gt;

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

    &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;inner&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;x&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nf"&gt;inner&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🎭 The &lt;code&gt;this&lt;/code&gt; Keyword
&lt;/h1&gt;

&lt;p&gt;&lt;code&gt;this&lt;/code&gt; refers to the object calling the function.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Jegan&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🏗️ Constructor Functions
&lt;/h1&gt;

&lt;p&gt;Functions can create objects.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;User&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;u1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Jegan&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🧪 Higher-Order Functions
&lt;/h1&gt;

&lt;p&gt;Functions that use other functions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;doubled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;n&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  ⚙️ Behind the Scenes
&lt;/h1&gt;

&lt;p&gt;When a function runs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JavaScript creates an &lt;strong&gt;execution context&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Uses a &lt;strong&gt;call stack&lt;/strong&gt; to manage execution&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  🌍 Real-World Usage
&lt;/h1&gt;

&lt;p&gt;Functions are used everywhere:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Backend (APIs, controllers)&lt;/li&gt;
&lt;li&gt;Frontend (events, UI updates)&lt;/li&gt;
&lt;li&gt;Data processing&lt;/li&gt;
&lt;li&gt;Business logic&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  🧠 Final Understanding
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;A function is a reusable worker in your program.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Take input&lt;/li&gt;
&lt;li&gt;Perform a task&lt;/li&gt;
&lt;li&gt;Return output&lt;/li&gt;
&lt;li&gt;Work with other functions&lt;/li&gt;
&lt;li&gt;Manage data and logic&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  🧒 Simple Definition (Child Level)
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;A function is a helper that does a job when you ask it.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h1&gt;
  
  
  🚀 Conclusion
&lt;/h1&gt;

&lt;p&gt;Functions are not just a feature of JavaScript —&lt;br&gt;
they are the &lt;strong&gt;foundation of everything you build&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you master functions, you master JavaScript.&lt;/p&gt;




</description>
    </item>
    <item>
      <title>Login Access Check</title>
      <dc:creator>JEGADESHWARAN B</dc:creator>
      <pubDate>Fri, 03 Apr 2026 15:52:50 +0000</pubDate>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a/login-access-check-3ih</link>
      <guid>https://dev.to/jegadeshwaran_b_b86e7dd1a/login-access-check-3ih</guid>
      <description>&lt;p&gt;you have:&lt;br&gt;
        username&lt;br&gt;
        password&lt;br&gt;
        isBlocked(boolean)&lt;br&gt;
    allow login only if:&lt;br&gt;
        username is "admin"&lt;br&gt;
        password is "1234"&lt;br&gt;
        user is not blocked&lt;br&gt;
    otherwise print appropriate message.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;username&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;admin&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;password&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;1234&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;isblocked&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;username&lt;/span&gt;&lt;span class="o"&gt;===&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;admin&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;password&lt;/span&gt;&lt;span class="o"&gt;===&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;1234&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;isblocked&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;user is blocked&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;logged in&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;username or password incorrect&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Shopping Discount System</title>
      <dc:creator>JEGADESHWARAN B</dc:creator>
      <pubDate>Fri, 03 Apr 2026 15:47:19 +0000</pubDate>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a/shopping-discount-system-33cl</link>
      <guid>https://dev.to/jegadeshwaran_b_b86e7dd1a/shopping-discount-system-33cl</guid>
      <description>&lt;p&gt;You have:&lt;br&gt;
        amount&lt;br&gt;
        isMember(boolean)&lt;br&gt;&lt;br&gt;
    A user buys products worth amount.&lt;br&gt;
    if amount ≥ 5000 =&amp;gt; 20% discount&lt;br&gt;
    if amount ≥ 2000 =&amp;gt; 10% discount&lt;br&gt;
    therwise =&amp;gt; no discount&lt;br&gt;
    members get extra 10% discount&lt;br&gt;
    Print final price after discount.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;amount&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;isMember&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;MemberDiscount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;discount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;amount&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;=&lt;/span&gt;&lt;span class="mi"&gt;5000&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
 &lt;span class="nx"&gt;discount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nf"&gt;elseif&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;amount&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;=&lt;/span&gt;&lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
  &lt;span class="nx"&gt;discount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;isMember&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;amount&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;amount&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;discount&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nx"&gt;MemberDiscount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;amount&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;amount&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="nx"&gt;discount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Operators in JavaScript</title>
      <dc:creator>JEGADESHWARAN B</dc:creator>
      <pubDate>Mon, 30 Mar 2026 08:33:54 +0000</pubDate>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a/operators-in-javascript-3on9</link>
      <guid>https://dev.to/jegadeshwaran_b_b86e7dd1a/operators-in-javascript-3on9</guid>
      <description>&lt;ol&gt;
&lt;li&gt;What are Operators in JavaScript?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Operators&lt;/strong&gt; are symbols used to perform operations on values (called operands).&lt;br&gt;
Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;10&lt;/code&gt; and &lt;code&gt;5&lt;/code&gt; → operands&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;+&lt;/code&gt; → operator&lt;/li&gt;
&lt;/ul&gt;




&lt;ol&gt;
&lt;li&gt;Types of Operators (Basic Idea)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Some common operators:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Arithmetic → &lt;code&gt;+&lt;/code&gt;, &lt;code&gt;-&lt;/code&gt;, &lt;code&gt;*&lt;/code&gt;, &lt;code&gt;/&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Assignment → &lt;code&gt;=&lt;/code&gt;, &lt;code&gt;+=&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Comparison → &lt;code&gt;==&lt;/code&gt;, &lt;code&gt;===&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Logical → &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt;, &lt;code&gt;||&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now we focus on &lt;strong&gt;Arithmetic operators (&lt;code&gt;+&lt;/code&gt; and &lt;code&gt;-&lt;/code&gt;)&lt;/strong&gt;&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;Addition (&lt;code&gt;+&lt;/code&gt;) Operator&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;How it works:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;If both values are &lt;strong&gt;numbers&lt;/strong&gt; → addition&lt;/li&gt;
&lt;li&gt;If &lt;strong&gt;any one is string&lt;/strong&gt; → convert to string&lt;/li&gt;
&lt;li&gt;Then &lt;strong&gt;join (concatenate)&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Examples&lt;/p&gt;

&lt;p&gt;Number + Number&lt;/p&gt;

&lt;p&gt;javascript&lt;br&gt;
console.log(10 + 5); // 15&lt;/p&gt;

&lt;p&gt;String + String&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Hello&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt; JS&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// "Hello JS"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;String + Number&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;10&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// "105"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Number + String&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;5&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// "105"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;ol&gt;
&lt;li&gt;Subtraction (&lt;code&gt;-&lt;/code&gt;) Operator&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;How it works:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Convert both values to &lt;strong&gt;numbers&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Perform subtraction&lt;/li&gt;
&lt;li&gt;If not possible → &lt;code&gt;NaN&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;Examples&lt;/p&gt;

&lt;p&gt;Number - Number&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 5&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;⚠️ String - Number&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;10&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 5&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Number - String&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;5&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 5&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;String - String&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;10&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;5&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 5&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Invalid String&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Hello&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// NaN&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;ol&gt;
&lt;li&gt;Final Difference&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Operator&lt;/th&gt;
&lt;th&gt;Behavior&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;+&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Can &lt;strong&gt;add&lt;/strong&gt; OR &lt;strong&gt;join strings&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Always &lt;strong&gt;numeric subtraction&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;ol&gt;
&lt;li&gt;Easy Memory Trick
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;5&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// "55"&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;5&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;+&lt;/code&gt; → string joins&lt;br&gt;
 &lt;code&gt;-&lt;/code&gt; → number math only&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Polymorphism in java</title>
      <dc:creator>JEGADESHWARAN B</dc:creator>
      <pubDate>Mon, 16 Feb 2026 06:59:23 +0000</pubDate>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a/polymorphism-in-java-579e</link>
      <guid>https://dev.to/jegadeshwaran_b_b86e7dd1a/polymorphism-in-java-579e</guid>
      <description>&lt;p&gt;&lt;strong&gt;Initial&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Polymorphism means many forms.&lt;br&gt;
It allows methods to perform different tasks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It increases flexibility in programs.&lt;br&gt;
It allows method overloading and method overriding.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;More Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Compile-time polymorphism uses overloading.&lt;br&gt;
Run-time polymorphism uses overriding.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Polymorphism allows one interface to have multiple implementations.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Inheritance in java</title>
      <dc:creator>JEGADESHWARAN B</dc:creator>
      <pubDate>Mon, 16 Feb 2026 06:58:22 +0000</pubDate>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a/inheritance-in-java-2cpa</link>
      <guid>https://dev.to/jegadeshwaran_b_b86e7dd1a/inheritance-in-java-2cpa</guid>
      <description>&lt;p&gt;&lt;strong&gt;Initial&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Inheritance is a feature of OOPS.&lt;br&gt;
It allows one class to acquire properties of another class.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It promotes code reusability.&lt;br&gt;
It creates a parent-child relationship between classes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;More Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Types include single, multiple, multilevel, hierarchical inheritance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Inheritance enables reuse of existing class features in new classes.&lt;/p&gt;

</description>
      <category>inheritance</category>
      <category>java</category>
    </item>
    <item>
      <title>this keyword in java</title>
      <dc:creator>JEGADESHWARAN B</dc:creator>
      <pubDate>Mon, 16 Feb 2026 06:56:58 +0000</pubDate>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a/this-keyword-in-java-1ajp</link>
      <guid>https://dev.to/jegadeshwaran_b_b86e7dd1a/this-keyword-in-java-1ajp</guid>
      <description>&lt;p&gt;&lt;strong&gt;Initial&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The this keyword refers to the current object.&lt;br&gt;
It is used inside class methods.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It differentiates instance variables from local variables.&lt;br&gt;
It can call current class methods and constructors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;More Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Commonly used when variable names are the same as parameters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The this keyword represents the current class object&lt;/p&gt;

</description>
    </item>
    <item>
      <title>OOPS (Object oriented Programming System)</title>
      <dc:creator>JEGADESHWARAN B</dc:creator>
      <pubDate>Mon, 16 Feb 2026 06:55:59 +0000</pubDate>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a/oops-object-oriented-programming-system-21gl</link>
      <guid>https://dev.to/jegadeshwaran_b_b86e7dd1a/oops-object-oriented-programming-system-21gl</guid>
      <description>&lt;p&gt;&lt;strong&gt;Initial&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;OOPS is a programming approach.&lt;br&gt;
It is based on objects and classes.&lt;br&gt;
It organizes code in a structured way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It focuses on real-world entities.&lt;br&gt;
It improves code reusability and security.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;More Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Main concepts include class, object, inheritance, polymorphism, encapsulation, abstraction.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;OOPS makes programs modular, reusable, and easy to maintain.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Continue statement</title>
      <dc:creator>JEGADESHWARAN B</dc:creator>
      <pubDate>Mon, 16 Feb 2026 06:51:08 +0000</pubDate>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a/continue-statement-465l</link>
      <guid>https://dev.to/jegadeshwaran_b_b86e7dd1a/continue-statement-465l</guid>
      <description>&lt;p&gt;&lt;strong&gt;Initial&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The continue statement skips current iteration.&lt;br&gt;
It moves to the next loop cycle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It does not terminate the loop.&lt;br&gt;
It only skips remaining code in that iteration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;More Depth&lt;/strong&gt;&lt;br&gt;
Used to avoid specific conditions inside loops.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The continue statement skips to the next iteration of a loop&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Break statement</title>
      <dc:creator>JEGADESHWARAN B</dc:creator>
      <pubDate>Mon, 16 Feb 2026 06:49:46 +0000</pubDate>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a/break-statement-1oh1</link>
      <guid>https://dev.to/jegadeshwaran_b_b86e7dd1a/break-statement-1oh1</guid>
      <description>&lt;p&gt;&lt;strong&gt;Initial&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The break statement stops execution.&lt;br&gt;
It exits from loop or switch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Control moves to the next statement after the loop.&lt;br&gt;
It prevents unnecessary execution.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;More Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Commonly used in switch and loops.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The break statement terminates the current block.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Jumping statement</title>
      <dc:creator>JEGADESHWARAN B</dc:creator>
      <pubDate>Mon, 16 Feb 2026 06:48:46 +0000</pubDate>
      <link>https://dev.to/jegadeshwaran_b_b86e7dd1a/jumping-statement-3a81</link>
      <guid>https://dev.to/jegadeshwaran_b_b86e7dd1a/jumping-statement-3a81</guid>
      <description>&lt;p&gt;&lt;strong&gt;Initial&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Jumping statements alter normal flow.&lt;br&gt;
They transfer control immediately.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;They are used inside loops or switch.&lt;br&gt;
They interrupt normal sequence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;More Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Examples include break and continue.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Jumping statements change program execution flow instantly.&lt;/p&gt;

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