<?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: Bharath kumar</title>
    <description>The latest articles on DEV Community by Bharath kumar (@bharath_11).</description>
    <link>https://dev.to/bharath_11</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%2F3443019%2F1dd2dd2f-5b3b-4a29-a926-206d4049b10a.webp</url>
      <title>DEV Community: Bharath kumar</title>
      <link>https://dev.to/bharath_11</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bharath_11"/>
    <language>en</language>
    <item>
      <title>Js in loop</title>
      <dc:creator>Bharath kumar</dc:creator>
      <pubDate>Fri, 05 Dec 2025 12:17:18 +0000</pubDate>
      <link>https://dev.to/bharath_11/js-in-loop-14e0</link>
      <guid>https://dev.to/bharath_11/js-in-loop-14e0</guid>
      <description>&lt;p&gt;&lt;strong&gt;Loop:&lt;/strong&gt;&lt;br&gt;
  Loops in JavaScript are used to reduce repetitive tasks by repeatedly executing a block of code as long as a specified condition is true. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. for Loop&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The for loop repeats a block of code a specific number of times. It contains initialization, condition, and increment/decrement in one line.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for (let i = 1; i &amp;lt;= 3; i++) {
    console.log("Count:", i);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;for in loop:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The for-in loop iterates over the enumerable keys of an object.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const person = { name: "Alice", age: 22, city: "Delhi" };

for (let key in person) {
  console.log(key, ":", person[key]);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;while:&lt;/strong&gt;&lt;br&gt;
The while loop executes as long as the condition is true. It can be thought of as a repeating if statement.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let i = 0;
while (i &amp;lt; 3) {
    console.log("Number:", i);
    i++;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;when the condition is false, the code of the block is not executed.&lt;br&gt;
&lt;strong&gt;Do While:&lt;/strong&gt;&lt;br&gt;
The do...while statement repeats until a specified condition evaluates to false.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;do
  statement
while (condition);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;for...in statement:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The for...in statement iterates a specified variable over all the enumerable properties of an object. For each distinct property, JavaScript executes the specified statements. &lt;br&gt;
While for...in iterates over property names, for...of iterates over property values:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const arr = [3, 5, 7];
arr.foo = "hello";

for (const i in arr) {
  console.log(i);
}
// "0" "1" "2" "foo"

for (const i of arr) {
  console.log(i);
}
// Logs: 3 5 7

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Js break and continue statement</title>
      <dc:creator>Bharath kumar</dc:creator>
      <pubDate>Wed, 03 Dec 2025 11:02:13 +0000</pubDate>
      <link>https://dev.to/bharath_11/js-break-and-continue-statement-3k6</link>
      <guid>https://dev.to/bharath_11/js-break-and-continue-statement-3k6</guid>
      <description>&lt;p&gt;&lt;strong&gt;Break:&lt;/strong&gt;&lt;br&gt;
 In JavaScript, the break statement is a control flow statement used to terminate loops or switch statements prematurely.&lt;br&gt;
&lt;strong&gt;Break in Loops:&lt;/strong&gt;&lt;br&gt;
 When break is encountered inside a for, while, or do-while loop, the loop immediately terminates, and program execution continues with the statement following the loop.&lt;br&gt;
JavaScript&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for (let i = 0; i &amp;lt; 10; i++) {
  if (i === 5) {
    console.log("Breaking the loop at i = 5");
    break; // Exits the loop
  }
  console.log(i);
}
// Output:
// 0
// 1
// 2
// 3
// 4
// Breaking the loop at i = 5

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;break in switch Statements:&lt;/strong&gt;&lt;br&gt;
Within a switch statement, break is used to exit the switch block after a matching case is executed. Without break, execution would "fall through" to subsequent case blocks.&lt;br&gt;
JavaScript&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let day = "Monday";
switch (day) {
  case "Monday":
    console.log("It's the start of the week.");
    break; // Exits the switch
  case "Tuesday":
    console.log("Another day of work.");
    break;
  default:
    console.log("Some other day.");
}
// Output:
// It's the start of the week.


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;break with Labels:&lt;/strong&gt;&lt;br&gt;
break can also be used with a label to exit a specific labeled statement, particularly useful for breaking out of nested loops.&lt;br&gt;
JavaScript&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;outerLoop: for (let i = 0; i &amp;lt; 3; i++) {
  innerLoop: for (let j = 0; j &amp;lt; 3; j++) {
    if (i === 1 &amp;amp;&amp;amp; j === 1) {
      console.log("Breaking out of outerLoop");
      break outerLoop; // Exits both innerLoop and outerLoop
    }
    console.log(`i: ${i}, j: ${j}`);
  }
}
// Output:
// i: 0, j: 0
// i: 0, j: 1
// i: 0, j: 2
// i: 1, j: 0
// Breaking out of outerLoop


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Continue:&lt;/strong&gt;&lt;br&gt;
  The continue statement skips the current iteration in a loop.&lt;/p&gt;

&lt;p&gt;The remaining code in the iteration is skipped and processing moves to the next iteration.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for (let i = 1; i &amp;lt;= 5; i++) {
  if (i === 3) {
    continue; // Skip the iteration when i is 3
  }
  console.log(i);
}
// Output:
// 1
// 2
// 4
// 5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;break the current iteration if condition is true the output is displayed before you see  &lt;/p&gt;

</description>
    </item>
    <item>
      <title>conditional Statements in Js</title>
      <dc:creator>Bharath kumar</dc:creator>
      <pubDate>Sun, 30 Nov 2025 13:04:07 +0000</pubDate>
      <link>https://dev.to/bharath_11/conditional-statements-in-js-3l0b</link>
      <guid>https://dev.to/bharath_11/conditional-statements-in-js-3l0b</guid>
      <description>&lt;p&gt;Conditional Statements allow us to perform different actions for different conditions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
    if
    if...else
    if...else if...else
    switch
    ternary (? :)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;If:&lt;/strong&gt;&lt;br&gt;
 Use if to specify a code block to be executed, if a specified condition is true.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if(conditon)
{
   //executed the code block
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The else Statement:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use else to specify a code block to be executed, if the same condition is false.&lt;br&gt;
Syntax&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The else if Statement:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use else if to specify a new condition to test, if the first condition is false.&lt;br&gt;
Syntax:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (condition1) {
  // code to execute if condition1 is true
} 
else if (condition2) {
  // code to execute if the condition1 is false and condition2 is true
} 
else {
  // code to execute if the condition1 is false and condition2 is false
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The switch Statement:&lt;/strong&gt;&lt;br&gt;
switch executes the code blocks that matches an expression.&lt;/p&gt;

&lt;p&gt;switch is often used as a more readable alternative to many if...else if...else statements, especially when dealing with multiple possible values.if break is not here in the every case they continue the next case is printed and after the break is executed the block code&lt;/p&gt;

&lt;p&gt;Syntax&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;switch(expression) {
  case x:
    // code block
    break;
  case y:
    // code block
    break;
  default:
    // code block
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;Use (? :) (ternary) as a shorthand for if...else.&lt;br&gt;
Example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;condition ? expression1 : expression2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>tutorial</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Operators in Js</title>
      <dc:creator>Bharath kumar</dc:creator>
      <pubDate>Sun, 30 Nov 2025 08:25:35 +0000</pubDate>
      <link>https://dev.to/bharath_11/operators-in-js-52ol</link>
      <guid>https://dev.to/bharath_11/operators-in-js-52ol</guid>
      <description>&lt;p&gt;&lt;strong&gt;operations:&lt;/strong&gt;&lt;br&gt;
 An operator is a symbol or keyword in programming that performs a specific mathematical or logical operation on one or more values called operands.&lt;br&gt;
&lt;strong&gt;types of operators:&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Arithmetic Operators:&lt;/strong&gt;&lt;br&gt;
Perform mathematical calculations.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;+ (Addition)  
- (Subtraction) 
* (Multiplication)
/ (Division)
% (Modulus - returns the remainder of a division)
** (Exponentiation)
++ (Increment - increases value by 1)
-- (Decrement - decreases value by 1) 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Assignment Operators:&lt;/strong&gt;&lt;br&gt;
Assign values to variables.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;= (Simple assignment)
+= (Add and assign)
-= (Subtract and assign)
*= (Multiply and assign)
/= (Divide and assign)
%= (Modulus and assign)
**= (Exponentiation and assign) 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Comparison Operators:&lt;/strong&gt;&lt;br&gt;
Compare two values and return a boolean (true or false) result.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;== (Loose equality - compares values after type coercion)
=== (Strict equality - compares values and types)
!= (Loose inequality)
!== (Strict inequality)
&amp;gt; (Greater than)
&amp;lt; (Less than)
&amp;gt;= (Greater than or equal to)
&amp;lt;= (Less than or equal to) 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Logical Operators:&lt;/strong&gt;&lt;br&gt;
Combine or manipulate boolean values.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;amp;&amp;amp; (Logical AND)
|| (Logical OR)
! (Logical NOT) 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Bitwise Operators:&lt;/strong&gt;&lt;br&gt;
Perform operations on the binary representation of numbers.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;amp; (Bitwise AND)
| (Bitwise OR)
^ (Bitwise XOR)
~ (Bitwise NOT)
&amp;lt;&amp;lt; (Left shift)
&amp;gt;&amp;gt; (Sign-propagating right shift)
&amp;gt;&amp;gt;&amp;gt; (Zero-fill right shift) 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Ternary (Conditional) Operator:&lt;/strong&gt;&lt;br&gt;
A shorthand for an if-else statement.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;condition ? expressionIfTrue : expressionIfFalse 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Unary Operators:&lt;/strong&gt;&lt;br&gt;
Operate on a single operand. Examples include typeof, delete, void, + (unary plus), - (unary negation).&lt;br&gt;
&lt;strong&gt;String Operators:&lt;/strong&gt;&lt;br&gt;
Primarily the + operator for string concatenation.&lt;br&gt;
&lt;strong&gt;Type Operators:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;typeof: Returns the data type of an operand as a string.
instanceof: Checks if an object is an instance of a particular class or constructor function.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
    </item>
    <item>
      <title>Javascript</title>
      <dc:creator>Bharath kumar</dc:creator>
      <pubDate>Sun, 30 Nov 2025 06:54:04 +0000</pubDate>
      <link>https://dev.to/bharath_11/javascript-4k7n</link>
      <guid>https://dev.to/bharath_11/javascript-4k7n</guid>
      <description>&lt;p&gt;&lt;strong&gt;what is javascipt ?&lt;/strong&gt;&lt;br&gt;
  Javascript is a interpreted scripting dynamically typed object programming language.It is used to behaviour of web pages.It can calculate,manipulate and validate data.supports mutliple paradigm such as imperative,functional and object oriented. the scripting language for Web pages.&lt;br&gt;
   object-oriented scripting language used to make webpages interactive (e.g., having complex animations, clickable buttons, popup menus, etc.).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Interperted:&lt;/strong&gt;&lt;br&gt;
  Means translate the source code to machine code.&lt;br&gt;
&lt;strong&gt;Dynamical:&lt;/strong&gt;&lt;br&gt;
  It is automatically find the what type of data in run time of execution the program.&lt;br&gt;
&lt;strong&gt;scripting:&lt;/strong&gt;&lt;br&gt;
  It is describe the line by line read the program code and execution.&lt;br&gt;
&lt;strong&gt;object oriented:&lt;/strong&gt;&lt;br&gt;
 Object-oriented (OO) is&lt;br&gt;
a programming model that structures software around data, or "objects," instead of functions and logic.Objects combine data (properties) and the methods (functions) that operate on that data. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;variables declaration:&lt;/strong&gt;&lt;br&gt;
  there are three types:&lt;br&gt;
     var,let,const&lt;br&gt;
Variables in JavaScript are named containers for data.&lt;br&gt;
&lt;strong&gt;let:&lt;/strong&gt;&lt;br&gt;
  Declares a block-scoped variable that can be reassigned.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let age = 30;
age = 31; // This is allowed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;const:&lt;/strong&gt;&lt;br&gt;
Declares a block-scoped variable whose value cannot be reassigned after it's initialized.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const pi = 3.14;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;var:&lt;/strong&gt;&lt;br&gt;
 An older way to declare a variable. It is function-scoped or globally-scoped and can be redeclared and reassigned.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var count = 5;
var count = 10; // This is allowed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Rules for identifiers of varaiables:&lt;br&gt;
 &lt;strong&gt;Valid characters:&lt;/strong&gt; Can contain letters, numbers, underscores (_), and dollar signs ($). Numbers are not allowed as the first character.&lt;br&gt;
&lt;strong&gt;Case-sensitive:&lt;/strong&gt; myVariable is different from myvariable.&lt;br&gt;
&lt;strong&gt;Cannot be reserved words:&lt;/strong&gt; You cannot use JavaScript's keywords (like if, for, function) as variable names.&lt;/p&gt;

&lt;p&gt;Data types:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Number:&lt;/strong&gt;Represents numeric values (integers and decimals).&lt;br&gt;
let n = 42;&lt;br&gt;
&lt;strong&gt;2. String:&lt;/strong&gt; Represents text enclosed in single or double quotes.&lt;br&gt;
let s = "Hello, World!";&lt;br&gt;
&lt;strong&gt;3. Boolean:&lt;/strong&gt; Represents a logical value (true or false).&lt;br&gt;
let bool= true;&lt;br&gt;
&lt;strong&gt;4. Undefined:&lt;/strong&gt; A variable that has been declared but not assigned a value.&lt;br&gt;
let notAssigned;&lt;br&gt;
console.log(notAssigned);&lt;/p&gt;

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

&lt;p&gt;undefined&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Null:&lt;/strong&gt; Represents an intentional absence of any value.&lt;/p&gt;

&lt;p&gt;let empty = null;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Symbol:&lt;/strong&gt; Represents unique and immutable values, often used as object keys.&lt;/p&gt;

&lt;p&gt;let sym = Symbol('unique');&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. BigInt:&lt;/strong&gt; Represents integers larger than Number.MAX_SAFE_INTEGER.&lt;/p&gt;

&lt;p&gt;let bigNumber = 123456789012345678901234567890n;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Non-Primitive Datatypes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Non-primitive types are objects and can store collections of data or more complex entities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Object:&lt;/strong&gt; Represents key-value pairs.&lt;/p&gt;

&lt;p&gt;let obj = {&lt;br&gt;
    name: "Amit",&lt;br&gt;
    age: 25&lt;br&gt;
};&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Array:&lt;/strong&gt; Represents an ordered list of values.&lt;/p&gt;

&lt;p&gt;let a = ["red", "green", "blue"];&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Function:&lt;/strong&gt; Represents reusable blocks of code.&lt;/p&gt;

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

&lt;p&gt;Exploring JavaScript Datatypes and Variables: Understanding Common Expressions&lt;/p&gt;

&lt;p&gt;console.log(null === undefined)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Expression: null === undefined
Result: false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>beginners</category>
      <category>frontend</category>
      <category>javascript</category>
    </item>
    <item>
      <title>React</title>
      <dc:creator>Bharath kumar</dc:creator>
      <pubDate>Sat, 29 Nov 2025 12:59:52 +0000</pubDate>
      <link>https://dev.to/bharath_11/react-4d5l</link>
      <guid>https://dev.to/bharath_11/react-4d5l</guid>
      <description>&lt;p&gt;&lt;strong&gt;React:&lt;/strong&gt;&lt;br&gt;
React is a JavaScript library for rendering user interfaces (UI). UI is built from small units like buttons, text, and images. React lets you combine them into reusable, nestable components. &lt;br&gt;
&lt;strong&gt;components:&lt;/strong&gt;&lt;br&gt;
React applications are built from isolated pieces of UI called components. A React component is a JavaScript function that you can sprinkle with markup. Components can be as small as a button, or as large as an entire page.&lt;br&gt;
&lt;strong&gt;React Component:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Each React component is a JavaScript function that may contain some markup that React renders into the browser. React components use a syntax extension called JSX to represent that markup.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>useState in React Hook</title>
      <dc:creator>Bharath kumar</dc:creator>
      <pubDate>Fri, 28 Nov 2025 14:58:30 +0000</pubDate>
      <link>https://dev.to/bharath_11/usestate-in-react-hook-2195</link>
      <guid>https://dev.to/bharath_11/usestate-in-react-hook-2195</guid>
      <description>&lt;p&gt;updating the screen:&lt;br&gt;
first you import the useState&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { useState } from 'react';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;your component to “remember” some information and display it.&lt;br&gt;
declare a state variable inside your component:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function MyButton() {
  const [count, setCount] = useState(0);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;initial state of &lt;strong&gt;count&lt;/strong&gt; is 0 if you change the state use &lt;strong&gt;setCount&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function MyButton() {
  const [count, setCount] = useState(0);

  function handleClick() {
    setCount(count + 1);
  }

  return (
    &amp;lt;button onClick={handleClick}&amp;gt;
      Clicked {count} times
    &amp;lt;/button&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;when you click the button the current state is updated using the setCount is increased.&lt;br&gt;
If you render the same component multiple times, each will get its own state.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hook:&lt;/strong&gt;&lt;br&gt;
Functions starting with use are called Hooks.useState is a built-in Hook provided by React.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export default function MyApp() {
  const [count, setCount] = useState(0);

  function handleClick() {
    setCount(count + 1);
  }

  return (
    &amp;lt;div&amp;gt;
      &amp;lt;h1&amp;gt;Counters that update together&amp;lt;/h1&amp;gt;
      &amp;lt;MyButton count={count} onClick={handleClick} /&amp;gt;
      &amp;lt;MyButton count={count} onClick={handleClick} /&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;the button is clicked upadted the state count together.use the information pass down this is called &lt;strong&gt;props&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
    <item>
      <title>useState in React Hook</title>
      <dc:creator>Bharath kumar</dc:creator>
      <pubDate>Fri, 28 Nov 2025 12:09:34 +0000</pubDate>
      <link>https://dev.to/bharath_11/usestate-in-react-hook-43bd</link>
      <guid>https://dev.to/bharath_11/usestate-in-react-hook-43bd</guid>
      <description>&lt;p&gt;updating the screen:&lt;br&gt;
first you import the useState&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { useState } from 'react';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;your component to “remember” some information and display it.&lt;br&gt;
declare a state variable inside your component:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function MyButton() {
  const [count, setCount] = useState(0);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;initial state of &lt;strong&gt;count&lt;/strong&gt; is 0 if you change the state use &lt;strong&gt;setCount&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function MyButton() {
  const [count, setCount] = useState(0);

  function handleClick() {
    setCount(count + 1);
  }

  return (
    &amp;lt;button onClick={handleClick}&amp;gt;
      Clicked {count} times
    &amp;lt;/button&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;when you click the button the current state is updated using the setCount is increased.&lt;br&gt;
If you render the same component multiple times, each will get its own state.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hook:&lt;/strong&gt;&lt;br&gt;
Functions starting with use are called Hooks.useState is a built-in Hook provided by React.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export default function MyApp() {
  const [count, setCount] = useState(0);

  function handleClick() {
    setCount(count + 1);
  }

  return (
    &amp;lt;div&amp;gt;
      &amp;lt;h1&amp;gt;Counters that update together&amp;lt;/h1&amp;gt;
      &amp;lt;MyButton count={count} onClick={handleClick} /&amp;gt;
      &amp;lt;MyButton count={count} onClick={handleClick} /&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;the button is clicked upadted the state count together.use the information pass down this is called &lt;strong&gt;props&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function MyButton({ count, onClick }) {
  return (
    &amp;lt;button onClick={onClick}&amp;gt;
      Clicked {count} times
    &amp;lt;/button&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;count and onclick is a props of parents component &lt;br&gt;
it is pass the button.&lt;br&gt;
The new count value is passed as a prop to each button, so they all show the new value. This is called “lifting state up”&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
    <item>
      <title>React</title>
      <dc:creator>Bharath kumar</dc:creator>
      <pubDate>Fri, 28 Nov 2025 11:42:24 +0000</pubDate>
      <link>https://dev.to/bharath_11/react-3kl9</link>
      <guid>https://dev.to/bharath_11/react-3kl9</guid>
      <description>&lt;p&gt;what is react ?&lt;br&gt;
  React apps are made out of components. A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page.&lt;br&gt;
React components are JavaScript functions that return markup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function MyButton() {
  return (
    &amp;lt;button&amp;gt;I'm a button&amp;lt;/button&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;MyButton, you can nest it into another component:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export default function MyApp() {
  return (
    &amp;lt;div&amp;gt;
      &amp;lt;h1&amp;gt;Welcome to my app&amp;lt;/h1&amp;gt;
      &amp;lt;MyButton /&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt; starts with a capital letter.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;export default&lt;/strong&gt; keywords specify the main component in the file.Its export into another jsx file and then imported to another the component.&lt;/p&gt;

&lt;p&gt;JSX is stricter than HTML. You have to close tags like &lt;br&gt;.You have to wrap them into a shared parent, like a &lt;/p&gt;... or an empty &amp;lt;&amp;gt;...&amp;lt;/&amp;gt; wrapper:

&lt;p&gt;&lt;strong&gt;Adding styles :&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img className="avatar" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;you can use the same like as css class and adding style same way using .avatar {}.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Displaying data:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  return (
  &amp;lt;h1&amp;gt;
    {user.name}
  &amp;lt;/h1&amp;gt;
);

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also “escape into JavaScript” from JSX attributes, but you have to use curly braces instead of quotes. &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to install react</title>
      <dc:creator>Bharath kumar</dc:creator>
      <pubDate>Tue, 18 Nov 2025 15:51:19 +0000</pubDate>
      <link>https://dev.to/bharath_11/how-to-install-react-1f8n</link>
      <guid>https://dev.to/bharath_11/how-to-install-react-1f8n</guid>
      <description>&lt;p&gt;✅ Step 1: Install Node.js &amp;amp; npm&lt;/p&gt;

&lt;p&gt;React requires Node + npm.&lt;br&gt;
open terminal in linux&lt;br&gt;
enter the code :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
sudo apt install nodejs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;after installation complited and next enter the code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
sudo apt install npm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;check version node -v and npm -v &lt;br&gt;
✅ Step 2: Install React using Vite (Recommended – Fast &amp;amp; Modern)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install Vite tool
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm create vite@latest my-react-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ol&gt;
&lt;li&gt;When asked:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Select React&lt;/p&gt;

&lt;p&gt;Select JavaScript&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the project
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd my-react-app

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ol&gt;
&lt;li&gt;Install dependencies
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ol&gt;
&lt;li&gt;Run the project
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run dev

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Now open the browser and go to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost:5173

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🎉 React app is running!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Header vs head tag</title>
      <dc:creator>Bharath kumar</dc:creator>
      <pubDate>Mon, 29 Sep 2025 11:46:15 +0000</pubDate>
      <link>https://dev.to/bharath_11/header-vs-head-tag-1cpp</link>
      <guid>https://dev.to/bharath_11/header-vs-head-tag-1cpp</guid>
      <description>&lt;p&gt;Head:&lt;br&gt;
   The&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;HTML element contains machine-readable information (metadata) about the document, like its title, scripts, and style sheets. There can be only one &lt;/p&gt; element in an HTML document.

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

&lt;p&gt;Header:&lt;br&gt;
   The&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;HTML element represents introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other 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%2Fw5xek4c2t45nkszju410.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%2Fw5xek4c2t45nkszju410.png" alt=" " width="235" height="214"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Reference:&lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/header" rel="noopener noreferrer"&gt;https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/header&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Html</title>
      <dc:creator>Bharath kumar</dc:creator>
      <pubDate>Fri, 19 Sep 2025 15:42:55 +0000</pubDate>
      <link>https://dev.to/bharath_11/html-1g8a</link>
      <guid>https://dev.to/bharath_11/html-1g8a</guid>
      <description>&lt;p&gt;What is html ? &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;HyperText Markup Language&lt;br&gt;
HTML (HyperText Markup Language) is the most basic building block of the Web. It defines the meaning and structure of web content.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;"Hypertext" refers to links that connect web pages to one another, either within a single website or between websites. Links are a fundamental aspect of the Web.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;HTML uses "markup" to annotate text, images, and other content for display in a Web browser. HTML markup includes special "elements" such as&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;head&amp;gt;, &amp;lt;title&amp;gt;, &amp;lt;body&amp;gt;, &amp;lt;header&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
and many others.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;An HTML element is set off from other text in a document by "tags", which consist of the element name surrounded by &amp;lt; and &amp;gt;. The name of an element inside a tag is case-insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the &lt;/p&gt; tag can be written as , .&lt;/li&gt;
&lt;li&gt;&lt;p&gt;HTML is a markup language consisting of a series of elements used to wrap (or enclose) text content to define its structure and cause it to behave in a certain way.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This simple writing text in text editor&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Instructions for life:
Eat
Sleep
Repeat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If we wrap this content with the following HTML elements, we can turn that single line into a paragraph&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(&amp;lt;p&amp;gt;)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
 and three bullet points&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; (&amp;lt;li&amp;gt;)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Used this element...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt;Instructions for life:&amp;lt;/p&amp;gt;

&amp;lt;ul&amp;gt;
  &amp;lt;li&amp;gt;Eat&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;Sleep&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;Repeat&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;Instructions for life:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Eat&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Sleep&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Repeat&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reference:&lt;a href="https://developer.mozilla.org/en-US/docs/Learn_web_development/Getting_started/Your_first_website/Creating_the_content" rel="noopener noreferrer"&gt;https://developer.mozilla.org/en-US/docs/Learn_web_development/Getting_started/Your_first_website/Creating_the_content&lt;/a&gt;&lt;/p&gt;

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