<?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: Kavya S</title>
    <description>The latest articles on DEV Community by Kavya S (@kavya_s).</description>
    <link>https://dev.to/kavya_s</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%2F3333703%2F1865f644-44a9-40e1-8755-49bb053899c9.png</url>
      <title>DEV Community: Kavya S</title>
      <link>https://dev.to/kavya_s</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kavya_s"/>
    <language>en</language>
    <item>
      <title>Features of Java</title>
      <dc:creator>Kavya S</dc:creator>
      <pubDate>Thu, 16 Oct 2025 07:08:45 +0000</pubDate>
      <link>https://dev.to/kavya_s/features-of-java-5b38</link>
      <guid>https://dev.to/kavya_s/features-of-java-5b38</guid>
      <description>&lt;p&gt;&lt;strong&gt;Features of Java&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Simple Syntax&lt;/strong&gt;&lt;br&gt;
Java's syntax is clean and easy to understand and remove complex features&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.Object Oriented&lt;/strong&gt;&lt;br&gt;
It focus on the concept of object  and the concepts of oops like Abstraction,Encapsulation,Inheritance and Polymorphism&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.Platform Independent&lt;/strong&gt;&lt;br&gt;
Java code is compiled not into native machine code, but into an intermediate format called bytecode.This byte code can run on any platform that has a JVM.&lt;br&gt;
The JVM interprets the bytecode into native machine instructions for the specific platform.&lt;br&gt;
we can write it once,run anywhere if JVM is installed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.Interpreted and Compiled&lt;/strong&gt;&lt;br&gt;
It acts like compile during .java file to .class bytecode and interpreter during .class bytecode to machine code&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5.Multithread&lt;/strong&gt;&lt;br&gt;
 This allows a program to perform multiple tasks simultaneously, leading to better performance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6.Portable&lt;/strong&gt;&lt;br&gt;
There are no implementation-dependent aspects, compiled Java code (bytecode) is highly portable. You can carry the bytecode and run it on any machine with a JVM.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7.High Performance&lt;/strong&gt;&lt;br&gt;
JIT compilers optimize bytecode to native code.so,It provides fast execution for modern applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8.Rich Standard Library&lt;/strong&gt;&lt;br&gt;
provides pre-built tools and libraries known as API.&lt;br&gt;
With the help of these libraries developers save a lot of time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9.Secured and Robust&lt;/strong&gt;&lt;br&gt;
It can catch mistakes early while writing the code and also keeps checking for errors when the program is running. It also has a feature called exception handling that helps deal with unexpected problems smoothly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10.Memory Management&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Memory management in java is handled by Java Virtual Machine.&lt;/li&gt;
&lt;li&gt;Memory for objects are stored in Heap&lt;/li&gt;
&lt;li&gt;Methods and local variables are stored in stack&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>java</category>
      <category>learning</category>
    </item>
    <item>
      <title>Common Errors in Java Program</title>
      <dc:creator>Kavya S</dc:creator>
      <pubDate>Thu, 16 Oct 2025 02:50:28 +0000</pubDate>
      <link>https://dev.to/kavya_s/common-errors-in-java-program-57e6</link>
      <guid>https://dev.to/kavya_s/common-errors-in-java-program-57e6</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hello World Program&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;public class Helloworld{
public static void main(String args[]){
System.out.println("Hello World");
}
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Common Errors&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Class name should match Filename
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// File named: HelloWorld.java
public class HelloWorld {  // CORRECT: Class name matches filename
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Java is Case Sensitive (eg., 'system should be System')
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;System.out.println("Hello, World!");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Class name must start with Uppercase
&lt;/li&gt;
&lt;/ul&gt;

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

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Every end of statements must have semicolons
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;System.out.print("Hello");
System.out.println("World!");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;To print a string, use double quotes
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;System.out.print("Hello");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;To print a single character,use single quotes
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;System.out.print('c');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Use Proper Braces
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }  // CORRECT: Braces properly placed
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Java Variable and Data type</title>
      <dc:creator>Kavya S</dc:creator>
      <pubDate>Tue, 14 Oct 2025 07:25:50 +0000</pubDate>
      <link>https://dev.to/kavya_s/java-variable-and-data-type-298o</link>
      <guid>https://dev.to/kavya_s/java-variable-and-data-type-298o</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Variable?&lt;/strong&gt;&lt;br&gt;
-Variable is a container that can hold value&lt;br&gt;
In java,declaring a varible should be follows like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//dataType variablename=value;
int number=10;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;datatype : This defines what kind of data the variable can hold(eg:numbers,text,true/false)&lt;/li&gt;
&lt;li&gt;variablename : This is a unique identifier you give to the variable so you can refer it later&lt;/li&gt;
&lt;li&gt;= : this is assignment operator.It assigns the value to the variable on its left&lt;/li&gt;
&lt;li&gt;value : the actual data you want to store&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Variable Rules&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can contain letters, digits, underscores (_), and dollar signs ($).&lt;/li&gt;
&lt;li&gt;Cannot start with a digit. (7days is invalid, but days7 is valid).&lt;/li&gt;
&lt;li&gt;Cannot be a Java keyword (like int, class, public, if).&lt;/li&gt;
&lt;li&gt;Case-sensitive (myVar and myvar are different variables).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;DataType&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;as discussed,it defines the type of value&lt;br&gt;
There are 2 types of datatype&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;primitive datatype&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;non-primitive datatype&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Primitive Datatype&lt;/strong&gt;&lt;br&gt;
There are 8 primitive datatypes&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;byte &lt;/li&gt;
&lt;li&gt;short&lt;/li&gt;
&lt;li&gt;int&lt;/li&gt;
&lt;li&gt;long&lt;/li&gt;
&lt;li&gt;float&lt;/li&gt;
&lt;li&gt;double&lt;/li&gt;
&lt;li&gt;boolean&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Java Introduction</title>
      <dc:creator>Kavya S</dc:creator>
      <pubDate>Mon, 13 Oct 2025 07:01:05 +0000</pubDate>
      <link>https://dev.to/kavya_s/java-introduction-d71</link>
      <guid>https://dev.to/kavya_s/java-introduction-d71</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Java?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Java is a high-level,object oriented programming language developed by sun microsystems.&lt;/li&gt;
&lt;li&gt;It is mostly used for building web applications.&lt;/li&gt;
&lt;li&gt;It is platform independent,because we can write it once,it will run on any device if jvm is installed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why object-oriented?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Java is object oriented because it focuses on the concept of object and supports encapsulation,inheritance,polymorphism and abstraction.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Core concepts of Java Ecosystems&lt;/strong&gt;&lt;br&gt;
JDK = JRE + Development Tools&lt;br&gt;
JRE = JVM + Libraries&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Compiler translates the human readable code to machine readable code.&lt;/li&gt;
&lt;li&gt;That compiler consists of multiple set of software known as Java Development KIT.&lt;/li&gt;
&lt;li&gt;We save that java file using .java after that byte code will save that file as .class&lt;/li&gt;
&lt;li&gt;Java virtual machine,converts Java bytecode (compiled code) into machine code.&lt;/li&gt;
&lt;li&gt;It is the intermediate between java code and hardware.&lt;/li&gt;
&lt;li&gt;The JIT or Just-In-Time compiler converts bytecode into native machine code at runtime.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example Java Code&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;public class Hello{
public static void main(String args[]){
System.out.println("Hello World");
}
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>React Question &amp; Answer</title>
      <dc:creator>Kavya S</dc:creator>
      <pubDate>Tue, 07 Oct 2025 01:55:56 +0000</pubDate>
      <link>https://dev.to/kavya_s/react-question-answer-26l6</link>
      <guid>https://dev.to/kavya_s/react-question-answer-26l6</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. What is the difference between a functional component and a class component in React?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Functional component is a javascript function that takes props and returns a react element(jsx) while class component use render() method, which returns the JSX&lt;/li&gt;
&lt;li&gt;Implements hooks easily within the function to handle state and effects but in class component,states are handled through class methods&lt;/li&gt;
&lt;li&gt;Hooks handle state initialization but in class component requires a constructor for initializing state&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2. How does JSX work internally? Why do we need it instead of plain JavaScript?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;JSX is like a shortcut that gets converted to regular JavaScript. When you write JSX like &lt;code&gt;&amp;lt;h1&amp;gt;Hello&amp;lt;/h1&amp;gt;&lt;/code&gt;, it gets turned into &lt;code&gt;React.createElement('h1', {}, 'Hello')&lt;/code&gt; behind the scenes. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;why we need?&lt;/strong&gt;&lt;br&gt;
JSX makes writing React code much easier and cleaner. Without JSX, you'd have to write long, complicated JavaScript code to create simple HTML elements. JSX looks like HTML so it's familiar and easy to read.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. What is Virtual DOM and how does React use it for rendering?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Virtual DOM acts as a bridge between UI and real DOM.&lt;br&gt;
It updates only the specific part of the page we need to change.&lt;br&gt;
If we update any components in a web page,it first update the changes in virtual DOM and it compare it with Real DOM.&lt;br&gt;
If it updates in actual DOM,it takes more time to update but virtual DOM makes it faster.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Explain props vs state with an example.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Props are properties that is passed from a parent component to a child component&lt;/li&gt;
&lt;li&gt;but in state,it can change over time based on user interactions or API responses.&lt;/li&gt;
&lt;li&gt;Props can be used with state and functional components and The state can be used only with the state components/class component&lt;/li&gt;
&lt;li&gt;Props are read-only,State can be updated with setState&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example for 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;// Parent Component
function App() {
  return &amp;lt;User name="John" age={25} /&amp;gt;;
}

// Child Component
function User(props) {
  return (
    &amp;lt;div&amp;gt;
      &amp;lt;h1&amp;gt;Name: {props.name}&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;Age: {props.age}&amp;lt;/p&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example for State&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 Counter() {
  const [count, setCount] = useState(0); // STATE

  return (
    &amp;lt;div&amp;gt;
      &amp;lt;p&amp;gt;Count: {count}&amp;lt;/p&amp;gt;
      &amp;lt;button onClick={() =&amp;gt; setCount(count + 1)}&amp;gt;
        Increase
      &amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;5) What is lifting state up in React? Give an example.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Lifting State Up is a pattern in React where you move the state from a child component to its parent component, allowing multiple child components to share and synchronize the same state data. [to be discussed]&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Props in React</title>
      <dc:creator>Kavya S</dc:creator>
      <pubDate>Wed, 01 Oct 2025 09:29:39 +0000</pubDate>
      <link>https://dev.to/kavya_s/props-in-react-3hph</link>
      <guid>https://dev.to/kavya_s/props-in-react-3hph</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Props?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Props are properties that are used to pass information from one component to another.&lt;/li&gt;
&lt;li&gt;The main purpose of props is to allow a parent component to send data to its child components.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why props?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pass data from parent to child components&lt;/li&gt;
&lt;li&gt;Enable inter-component communication&lt;/li&gt;
&lt;li&gt;Create clear data flow channels&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example&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;// Parent Component
function App() {
  return (
    &amp;lt;div&amp;gt;
      &amp;lt;Greeting name="Alice" /&amp;gt;
      &amp;lt;Greeting name="Bob" /&amp;gt;
      &amp;lt;Greeting name="Charlie" /&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}

// Child Component receiving props
function Greeting(props) {
  return &amp;lt;h1&amp;gt;Hello, {props.name}!&amp;lt;/h1&amp;gt;;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hello, Alice! &lt;br&gt;
Hello, Bob! &lt;br&gt;
Hello, Charlie! &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Jsx,React DOM,Components</title>
      <dc:creator>Kavya S</dc:creator>
      <pubDate>Mon, 15 Sep 2025 01:58:45 +0000</pubDate>
      <link>https://dev.to/kavya_s/jsxreact-domcomponents-ck</link>
      <guid>https://dev.to/kavya_s/jsxreact-domcomponents-ck</guid>
      <description>&lt;p&gt;&lt;strong&gt;what is jsx?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It allows you to write HTML code directly inside the JS file.&lt;/li&gt;
&lt;li&gt;Before jsx,developers had to use complex JS functions to create HTML.&lt;/li&gt;
&lt;li&gt;with jsx,it makes HTML easier to visible&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;Acts bridge between UI and actual DOM.&lt;/li&gt;
&lt;li&gt;It update only the specific parts of the page we need to change.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Component&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Components are independent and reusable bits of code&lt;/li&gt;
&lt;li&gt;There are two common ways to write components:&lt;/li&gt;
&lt;li&gt;Function components&lt;/li&gt;
&lt;li&gt;Class components&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Function component&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When creating a React component, the component's name MUST start with an upper case letter.&lt;/li&gt;
&lt;li&gt;React components returns HTML code.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;br&gt;
Create a Function component called Car&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function Car() {
  return (
    &amp;lt;h2&amp;gt;Hi,I have a Car!&amp;lt;/h2&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Rendering a component&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To use this component in your application, refer to it like this: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;br&gt;
Display the Car component in the "root" element:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;createRoot(document.getElementById('root')).render(
  &amp;lt;Car /&amp;gt;
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>react</category>
      <category>learning</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>React,CRA,Vite</title>
      <dc:creator>Kavya S</dc:creator>
      <pubDate>Sat, 13 Sep 2025 03:26:57 +0000</pubDate>
      <link>https://dev.to/kavya_s/reactcravite-m4e</link>
      <guid>https://dev.to/kavya_s/reactcravite-m4e</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is React?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;React is a javascript library to build user interface and single page application&lt;/li&gt;
&lt;li&gt;It allows developers to create large web applications       that can change data,without refreshing the page&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What is CRA?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CRA stands for Create React App&lt;/li&gt;
&lt;li&gt;It provides a pre-configured environment with default setup, including Webpack, Babel, and ESLint.&lt;/li&gt;
&lt;li&gt;This allows developers to focus on writing code rather than dealing with complex build configurations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What is Vite?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Vite is a frontend tool that is used for building fast and optimized web applications. &lt;/li&gt;
&lt;li&gt;It uses a modern build system and a fast development server to provide a streamlined and efficient development experience.&lt;/li&gt;
&lt;li&gt;It features rapid hot module replacement (HMR), so you can instantly see updates as you change your code.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Fetch,Axios in JavaScript</title>
      <dc:creator>Kavya S</dc:creator>
      <pubDate>Sat, 13 Sep 2025 01:44:28 +0000</pubDate>
      <link>https://dev.to/kavya_s/fetchaxios-in-javascript-3n7o</link>
      <guid>https://dev.to/kavya_s/fetchaxios-in-javascript-3n7o</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Fetch?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Fetch is a tool in Javascript that allows website to communicate to a server to get or send information&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Fetch?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you shop online,fetch retrieves product details or sends your order to server&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&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;script&amp;gt;
fetch("https://fakestoreapi.com/products")
.then ((res) =&amp;gt; res.json())
.then (jsonresponse) =&amp;gt; console.log(jsonresponse))
.catch ((rej) =&amp;gt; rej.json())
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;What is Axios?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Axios is an external library&lt;/li&gt;
&lt;li&gt;Axios is a promise-based HTTP Client for node.js and the browser&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example&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;axios.get("https://fakestoreapi.com/products")
.then (res =&amp;gt; {
console.log(res);
})
.catch (err =&amp;gt; {
console.error(err);
})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>learning</category>
    </item>
    <item>
      <title>Promise in JavaScript</title>
      <dc:creator>Kavya S</dc:creator>
      <pubDate>Fri, 12 Sep 2025 02:36:09 +0000</pubDate>
      <link>https://dev.to/kavya_s/promise-in-javascript-4o6f</link>
      <guid>https://dev.to/kavya_s/promise-in-javascript-4o6f</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Promise?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Promise is an object that is used to handle asynchronous operation.&lt;br&gt;
This will execute either resolve or reject&lt;br&gt;
if resolve, it will execute then block&lt;br&gt;
else, it will execute catch block&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why we use Promise?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Avoid Callback Hell&lt;/strong&gt;&lt;br&gt;
Promises allow you to chain asynchronous operations instead of nesting them. This is done using .then()&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.Error Handling&lt;/strong&gt;&lt;br&gt;
With callbacks, you had to check for errors at every single level of nesting. Promises provide a single .catch() method at the end of the chain.&lt;br&gt;
so,it makes easy to check the error&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When should we use Promise?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When Making Network Requests&lt;/li&gt;
&lt;li&gt;When Working with Databases&lt;/li&gt;
&lt;li&gt;When Reading or Writing Files&lt;/li&gt;
&lt;li&gt;When Using Timers or Delays&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example&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 booking(){
            return new Promise((resolve,reject)=&amp;gt;{
                let bookingsuccess=true;
                if(bookingsuccess)
                resolve(850)
            else
            reject()
            })
        }
        booking().then(()=&amp;gt; console.log("booking success"))
        .then((amt)=&amp;gt; console.log('i have transfered ${amt}'))
        .catch(()=&amp;gt; console.log("try again"))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>learning</category>
    </item>
    <item>
      <title>CallBack,CallBack Hell</title>
      <dc:creator>Kavya S</dc:creator>
      <pubDate>Thu, 11 Sep 2025 01:26:42 +0000</pubDate>
      <link>https://dev.to/kavya_s/callbackcallback-hell-10cd</link>
      <guid>https://dev.to/kavya_s/callbackcallback-hell-10cd</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is CallBack?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is a function that is passed as an argument to another function &lt;/li&gt;
&lt;li&gt;callback allows another function to call&lt;/li&gt;
&lt;li&gt;A function can accept another function as argument
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function greet(name,callback) {
    console.log("Hello, " + name);
    callback();
    }

    function sayBye() {
    console.log("Goodbye!");
    }

    greet("Ajay", sayBye);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;When to use callback?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;when performing asynchronous operations such as network requests&lt;/li&gt;
&lt;li&gt;It is used to handle events such as user input,mouse clicks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What is CallBack Hell?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Multiple nested callback functions make code more difficult to read and maintain so that we call it as callback hell.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; setTimeout(()=&amp;gt;{
           console.log("step1");
           setTimeout(()=&amp;gt;{
            console.log("step2");
            setTimeout(()=&amp;gt;{
                console.log("step3");
                setTimeout(()=&amp;gt;{
                    console.log("step4")
                },1000)
            },1000)
           },1000)
       },1000) 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Problems with callback hell:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Readability&lt;/li&gt;
&lt;li&gt;Error Handling&lt;/li&gt;
&lt;li&gt;Maintaining&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Solutions to avoid callback hell&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Promises&lt;/li&gt;
&lt;li&gt;Async/Await&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>learning</category>
    </item>
    <item>
      <title>Synchronous,Asynchronous in JavaScript</title>
      <dc:creator>Kavya S</dc:creator>
      <pubDate>Thu, 11 Sep 2025 01:14:07 +0000</pubDate>
      <link>https://dev.to/kavya_s/synchronousasynchronous-in-javascript-hcl</link>
      <guid>https://dev.to/kavya_s/synchronousasynchronous-in-javascript-hcl</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Synchronous?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In synchronous,each line of code executes line by line.&lt;br&gt;
that means,each line of code waits for the previous one to execute&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&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;console.log("Hi")
console.log("Welcome")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;br&gt;
Hi&lt;br&gt;
Welcome&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Asynchronous?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In asynchronous,a task can be initiated and while waiting for it to complete, other task can be proceed.&lt;/li&gt;
&lt;li&gt;It improves performance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example:&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;console.log("Task1")
setTimeOut(()=&amp;gt;{
console.log("Task2")
},2000);
console.log("Task3")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;br&gt;
Task1&lt;br&gt;
Task3&lt;br&gt;
Task2&lt;/p&gt;

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