Create React App Using Vite: Complete Beginner's Guide (2026)

Image
How to Create a React App Using Vite: Step-by-Step Tutorial 1. Introduction React.js is a popular JavaScript library used to create interactive and modern websites. Many beginners want to learn React but feel confused about how to install it and start their first project. Before writing React code, we need a proper development environment. In this tutorial, you will learn how to create a React app using Vite from the beginning. We will cover the basic requirements, installation process, project structure, important features, advantages, disadvantages and practical code examples. 2. What Is React.js? React.js is an open-source JavaScript library used to build user interfaces, especially for websites and web applications. It was originally developed at Facebook (now Meta ) to make it easier to manage complex and interactive website interfaces. React allows developers to divide a website into smaller parts called components. Each component can manage its own structure and behaviour. Fo...

JavaScript Arithmetic Operators

 

JavaScript Arithmetic Operators



JavaScript  Arithmetic Operators 

    1] Addition (+)

    2]  Subtraction (-)

    3] Multiplication  (*)

    4] Exponentiation (**)

    5] Division  (/)

    6]  Modulus   (%)

    7]   Increment  (++)

     8]  Decrement (--)

  

         Example :-

  

Operators

 Name

Example

Result

 
      +

 
Addition

 
 6+2

 
8

      
      -

 
Subtraction

 
6 - 2

 
4

 
      *

 
Multiplication

 
6 * 2

 
12

   
     ** 

 
Exponentiation

 
2 **3

 
8

 
      /

 
Division

 
6 / 2

 
3

    
     %

 
Modulus

 
7 % 3

 
1

  
    ++    

 
Increment

 
 6 ++

 
7

 
     _ _
 

 
Decrement

 
6 - -

 
5


    1] Addition (+)     

Example (Source Code)  :-

let a= 1000
    b=  2000;
  document.write( "Addition of two number =",a+b);

  Output :-

Addition two number

    2]  Subtraction (-)

Example (source Code)   :-

let a= 4000
    b=  2000;
  document.write( "Subtraction of two number =",a-b);

  Output :-

subtraction of two number


    3] Multiplication  (*)

Example :-

let a= 4000
    b=  2000;
  document.write( "Multiplication of two number =",a*b);


  Output :-

multiplication of two number
4] Exponentiation (**)

Example :-

let a= 4
    b=  2;
  document.write( "Exponentiation of two number =",a**b);

  Output :-

Exponentiation of two  number


           


  5] Division  (/)


Example :-

let a= 4
    b=  2;
  document.write( "Division of two number =",a/b);


  Output :-

Division of two number


    6]  Modulus   (%)
Example :-

let a= 4
    b=  2;
  document.write( "Modulus of two number =",a%b);

  Output :-



    7]   Increment  (++)
Example :-

let a= 4
   
  document.write( "Increment of two number =",++a);

  Output :-

     8]  Decrement (--)

Example :-

let a= 4
   
  document.write( "Decrement of two number =",--a);

  Output :-

Decrement (--)


Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

CSS Outline Offset Property with Practical Examples