Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Next.js Tutorial
  • Next.js Components
  • Next.js Functions
  • Next.js Deployment
  • Next.js Projects
  • Next.js Routing
  • Next.js Styles
  • Next.js Server-Side Rendering
  • Next.js Environment Variables
  • Next.js Middleware
  • Next.js Typescript
  • Next.js Image Optimization
  • Next.js Data Fetching
Open In App
Next Article:
Next.js Installation
Next article icon

Getting Started with Next JS

Last Updated : 18 Jul, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

NextJS is an open-source React framework for building full-stack web applications ( created and maintained by Vercel ). You can use React Components to build user interfaces, and NextJS for additional features and optimizations. It is built on top of Server Components, which allows you to render server-rendered React components to the client. This means your pages can be more interactive and dynamic, while still being fast and performant. One of its notable features is the NextJS App Router, which facilitates routing within your application. This article will dive into NextJS App Router, its components, and implementation, and provide a code example and a brief output.

Table of Content

  • Create Your First Next.js App
  • NextJS Scripts:
  • Add TypeScript to NextJS:
  • Pages and Routes in Next JS
  • Links and Navigation in Next JS
  • Route Groups in Next JS
  • SEO in Next JS:
  • API Routes in Next JS:
  • Data fetching in Next JS
  • Requesting Data in Next JS:
  • What Features Does NextJS Not Have?
  • What is the NextJS App router?
  • Conclusion
  • FAQs - Getting Started with Next.js

Create Your First Next.js App

To create a NextJS app, you can use the following steps:

Step 1: Install NodeJS if you haven't already. Open a terminal and run the following command to create a new Next.js app:

npx create-next-app my-next-app

Step 2: On installation, you'll see the following prompts:

What is your project named? my-app Would you like to use TypeScript? No / Yes Would you like to use ESLint? No / Yes Would you like to use Tailwind CSS? No / Yes Would you like to use `src/` directory? No / Yes Would you like to use App Router? (recommended) No / Yes Would you like to customize the default import alias (@/*)? No / Yes What import alias would you like configured? @/*

Step 3: Navigate into your newly created app directory:

cd my-next-app

Step 4: Start the development server:

npm run dev

Step 5: Open your browser and visit http://localhost:3000 to see your Next.js app running.

NextJS Scripts

Next.js provides several scripts to manage your application:

"scripts": {     "dev": "next dev",     "build": "next build",     "start": "next start",     "export": "next export",     "lint": "next lint" }
  • dev: Starts the development server.
  • build: Builds the production-ready application.
  • start: Starts the production server after building.
  • lint: Runs linting checks on your Next.js project files using ESLint.
  • export: Exports the application as a static site.

Add TypeScript to NextJS

To add TypeScript to a Next.js app:

npm install --save-dev typescript @types/react @types/node

Rename your .js files to .tsx or .ts. Next.js will automatically detect TypeScript and provide type-checking support

Creating a Simple Page in Next JS:

This example creates a basic page that displays "Hello, World!". This page component is named index.js and is located in the pages directory.

JavaScript
// pages/index.js  import React from "react";  export default function Home() {     return (         <div>             <h1>Hello, World!</h1>         </div>     ); } 

Pages and Routes in Next JS

1. Routing - Next.js uses a file-based structure router where folders define the routes. A special page.js file is used to make route segments

2. Pages - A page is a UI that is Unique to a route. Use nested folders to define routes and a page.js file to make it publicly accessible.

  • pages/index.js corresponds to the homepage (/).
  • pages/about.js corresponds to the about page (/about).

3. Layouts - A layout is a UI that is shared between multiple pages. On navigation, layouts preserve state, remain interactive, and do not re-render.

Links and Navigation in Next JS

Linking and Navigating - Next.js provides two primary methods for linking and navigating between routes:

  • Using <Link> component The <Link> is a built-in component that extends the HTML <a> tag to provide prefetching and client-side navigation between routes
  • Using the useRouter hook The useRouter hook allows you to programmatically change routes. This hook can be used only in client components
JavaScript
// Filename - index.js  import Link from "next/link";  const HomePage = () => (     <div>         <Link href="/about">             <a>About Page</a>         </Link>     </div> );  export default HomePage; 

Navigation and routing use Prefetching, Caching, Partial rendering, Soft navigation, and Back and forward navigation.

Route Groups in Next JS

A Route group can be created by wrapping the folder name with parenthesis (folderName) which helps in

  • Organize the routes without affecting the URLs.
  • To create a group of related routes together.

Dynamic Routes - A Dynamic segment can be created by wrapping a folder name in square brackets [folderName]

Loading UI and Streaming - It is a special file `loading.js` that helps to create meaningful loading UI with React suspense.

Streaming allows us to break down the page’s HTML into small chunks and progressively send those chunks from the server to the client.

Error Handling - The error.js file convention allows to handle unexpected runtime errors in nested routes

Route Handlers - Route Handlers allows you to create custom route handlers for a given route using the web request and response.

Route Handlers are defined in a route.js | ts

SEO in Next JS

NextJS offers built-in SEO optimizations such as server-side rendering and automatic code splitting, which can improve search engine visibility. Developers can also use meta tags and structured data to further enhance SEO.

API Routes in Next JS

NextJS allows you to create API routes to handle server-side logic separately from your main application logic. API routes are stored in the pages/API directory and can be accessed via HTTP requests.

Data fetching in Next JS

There are four ways to fetch data

  • on the server, with a `fetch`
  • on the server, with third-party libraries
  • on the client, with route handlers
  • on the client, with third-party libraries

Fetching Data on the server with fetch

Fetching Data on the server with fetch, Next Js extends the native fetch web API to allow you to configure the caching and revalidating behavior for each request on the server. fetch with async / await in server components.

Fetching data on the Server with third-party libraries

In cases where you're using a third-party library that doesn't support or expose fetch (for example, a database, CMS, or ORM client), you can configure the caching and revalidating behavior of those requests using the Route Segment Config Option and React's cache function.

Fetching Data on the Client with Route Handlers

If you need to fetch data in a client component, you can call a Route Handler from the client. Route Handlers execute on the server and return the data to the client. This is useful when you don't want to expose sensitive information to the client, such as API tokens.

Fetching Data on the Client with third-party libraries

Fetching Data on the Client with third-party libraries using SWR and React Query. These libraries provide their APIs for memoizing requests, caching, revalidating, and mutating data.

Requesting Data in Next JS

  • Client-side: Next.js integrates well with libraries like fetch or axios for making API requests directly from the browser. This approach is ideal for fetching data that doesn't require server-side processing.
  • Server-side: Functions like getStaticProps and getServerSideProps enable you to fetch data on the server before the page is rendered. This is useful for dynamic content that needs to be personalized for each user.
  • getStaticProps vs. getServerSideProps:
  • getStaticProps: This function fetches data at build time, making your pages statically generated. This is ideal for content that rarely changes and prioritizes fast load times.
  • getServerSideProps: This function fetches data on each request, making your pages server-rendered. This provides the most dynamic experience but might have a slight performance overhead compared to getStaticProps.
  • Caching Data - Caching stores data so it doesn’t need to be re-fetched from the data source for every request.
  • Revalidating Data - Revalidating data is a process of purging the cache data and fetching the latest data. cached data can be revalidated in two ways.
  • Time-based revalidation and On-demand revalidation.

Fetching Data with getStaticProps

This example fetches a list of posts from an API and displays them on the page. The getStaticProps function fetches data before the page is rendered on the server.

JavaScript
// pages/posts.js  import React from "react";  export async function getStaticProps() {     const response = await fetch(" https://jsonplaceholder.typicode.com/posts/ 	");     const data = await response.json();      return {         props: {             posts: data,         },     }; }  export default function Posts({ posts }) {     return (         <div>             <h1>List of Posts</h1>             <ul>                 {posts.map((post) => (                     <li key={post.id}>{post.title}</li>                 ))}             </ul>         </div>     ); } 

What Features NextJS Gives You?

  • Server-side Rendering (SSR) and Static Site Generation (SSG): Next.js empowers you to choose how your pages are generated. SSR allows for dynamic content personalized per user, while SSG offers pre-rendered static pages for lightning-fast load times.
  • Automatic Code-Splitting: Next.js intelligently breaks down your application into smaller bundles, ensuring only the necessary code is loaded for each page, resulting in a faster user experience.
  • File-Based Routing: Routing is intuitive in Next.js. Each file in the pages directory corresponds to a route in your application, making the structure clear and easy to manage.
  • Built-in Data Fetching: Next.js provides functions like getStaticProps and getServerSideProps for fetching data at build time or on each request, giving you flexibility for different content types.
  • Automatic Image Optimization: Next.js automatically optimizes images for various screen sizes and devices, improving website performance and user experience.
  • TypeScript Support: Next.js seamlessly integrates with TypeScript, providing type safety and improved development experience for TypeScript users.
  • Static Site Generation (SSG): Next.js supports static site generation, where pages can be pre-built at build time, enhancing performance and reducing server load.

What Features Does NextJS Not Have?

  • Built-in State Management: While Next.js is tightly integrated with React, it doesn't come with built-in state management solutions. Developers can use libraries like Redux or React Context for state management.
  • Built-in Styling Solution: Next.js doesn't include a built-in solution for styling components. Developers can choose from various styling solutions like CSS Modules, Styled Components, or Tailwind CSS.

What is the NextJS App router?

The NextJS App Router is a core component of the Next.js framework that handles routing within your application. It enables you to define and manage the routes your application will respond to. Next.js follows a file-based routing system, making it an intuitive and efficient way to structure your application's navigation. It offers various components and features to create robust and flexible routing in your Next.js application.

Conclusion

Remember to check the official NextJS documentation and release notes for any specific changes and improvements in version 13 and any new routing features. The framework may have evolved since my last update.


Next Article
Next.js Installation

C

chmanikanta528
Improve
Article Tags :
  • Web Technologies
  • ReactJS
  • Next.js

Similar Reads

    Next.js Tutorial
    Next.js is a popular React framework that extends React's capabilities by providing powerful tools for server-side rendering, static site generation, and full-stack development. It is widely used to build SEO-friendly, high-performance web applications easily.Built on React for easy development of f
    6 min read

    Next js basics

    Next.js Introduction
    Next.js is a powerful and flexible React framework that has quickly become popular among developers for building server-side rendered and static web applications. Created by Vercel, Next.js simplifies the process of developing modern web applications with its robust feature set. In this article, we’
    5 min read
    Getting Started with Next JS
    NextJS is an open-source React framework for building full-stack web applications ( created and maintained by Vercel ). You can use React Components to build user interfaces, and NextJS for additional features and optimizations. It is built on top of Server Components, which allows you to render ser
    9 min read
    Next.js Installation
    Next.js is a popular React framework that enables server-side rendering and static site generation. It is easy to learn if you have prior knowledge of HTML, CSS, JavaScript, and ReactJS. Installing Next.js involves setting up Node.js and npm, creating a new Next.js project using npx create-next-appa
    4 min read
    NextJS 14 Folder Structure
    Next.js, a powerful React framework developed by Vercel, continues to evolve, bringing new features and improvements with each release. Version 14 of Next.js introduces enhancements to the folder structure, making it more efficient for developers to organize their projects. In this article, we’ll ex
    4 min read
    Next.js Create Next App
    In Next.js, the create next app command is used to automatically initialize a new NextJS project with the default configuration, providing a streamlined way to build applications efficiently and quickly.System Requirements:Node.js 12.22.0 or laterNPM 6.14.4 or later OR Yarn 1.22.10 or latermacOS, Wi
    3 min read
    Deploying your Next.js App
    Deploying a Next.js app involves taking your application from your local development environment to a production-ready state where it can be accessed by users over the internet. Next.js is a popular React framework that enables server-side rendering, static site generation, and client-side rendering
    3 min read

    Next js Routing

    Next.js Routing
    Next.js is a powerful framework built on top of React that simplifies server-side rendering, static site generation, and routing. In this article, we'll learn about the fundamentals of Next.js routing, explore dynamic and nested routes, and see how to handle custom routes and API routes.Table of Con
    6 min read
    Next.js Nested Routes
    Next.js is a popular React framework that enables server-side rendering and static site generation. One of the key features that enhance the development experience in Next.js is its routing system.While Next.js provides a file-based routing mechanism, implementing nested routes requires some additio
    4 min read
    Next.js Pages
    The Next.js Pages are the components used to define routes in the next application. Next.js uses a file-based routing system that automatically maps files in the pages directory to application routes, supporting static, dynamic, and nested routes for seamless web development. In this article, we wil
    3 min read
    Next JS Layout Component
    Next JS Layout components are commonly used to structure the overall layout of a website or web application. They provide a convenient way to maintain consistent header, footer, and navigation elements across multiple pages. Let's see how you can create and use a Layout component in Next.js. Prerequ
    3 min read
    Navigate Between Pages in NextJS
    Navigating between pages in Next.js is smooth and optimized for performance, with the help of its built-in routing capabilities. The framework utilizes client-side navigation and dynamic routing to ensure fast, smooth transitions and an enhanced user experience.Prerequisites:Node.js and NPMReactJSNe
    3 min read
    loading.js in Next JS
    Next JS is a React framework that provides a number of features to help you build fast and scalable web applications. One of these features is loading.js which allows you to create a loading UI for your application.Prerequisites:JavaScript/TypeScriptReactJS BasicsNextJSLoading UI is important becaus
    3 min read
    Linking between pages in Next.js
    In this article, we are going to see how we can link one page to another in Next.js. Follow the below steps to set up the linking between pages in the Next.js application:To create a new NextJs App run the below command in your terminal:npx create-next-app GFGAfter creating your project folder (i.e.
    2 min read
    Next.js Redirects
    Next.js Redirects means changing the incoming source request to the destination request and redirecting the user to that path only. When the original web application is under maintenance, the users browse or access the web application, and we want to redirect the user to another web page or applicat
    4 min read
    Next.js Dynamic Route Segments
    Dynamic routing is a core feature in modern web frameworks, enabling applications to handle variable paths based on user input or dynamic content. In Next.js 13+, with the introduction of the App Router, dynamic routes are implemented using a folder-based structure inside the app directory.This arti
    2 min read
    Middlewares in Next.js
    Middlewares in Next.js provide a powerful mechanism to execute custom code before a request is completed. They enable you to perform tasks such as authentication, logging, and request manipulation, enhancing the functionality and security of your application.Table of ContentMiddleware in Next.jsConv
    7 min read
    Next JS Routing: Internationalization
    Next.js allows you to configure routing and rendering for multiple languages, supporting both translated content and internationalized routes. This setup ensures your site adapts to different locales, providing a seamless and localized experience for users across various languages.Prerequisites:NPM
    4 min read

    Next js Data Fetching

    Next.js Data Fetching
    Next.js Data Fetching refers to the process of getting data from a server or an API and displaying it on a webpage. Next.js offers multiple data-fetching methods to handle server-side rendering, static generation, and client-side rendering. These methods enable you to fetch and manage data efficient
    6 min read
    Server Actions in Next.js
    Server actions in Next.js refer to the functionalities and processes that occur on the server side of a Next.js application. It enables efficient, secure handling of server-side operations like data fetching, form processing, and database interactions, enhancing application security and performance
    4 min read
    How to Fetch data faster in Next.js?
    NextJS, a popular React framework provides various approaches to fetch data efficiently. Optimizing data fetching can significantly improve the performance and user experience of your NextJS applications. We will discuss different approaches to Fetch data faster in NextJS: Table of Content Static Ge
    6 min read

    Next js Rendering

    Server Components in Next.js
    Server Components in Next.js offer a way to build components that are rendered on the server rather than on the client. This feature enhances performance by reducing the amount of JavaScript sent to the browser and allows for faster initial page loads. In this post, we will explore the Server Compon
    4 min read
    Edge Functions and Middleware in Next JS
    Next JS is a React-based full-stack framework developed by Vercel that enables functionalities like pre-rendering of web pages. Unlike traditional react apps where the entire app is loaded on the client. Next.js allows the web page to be rendered on the server, which is great for performance and SEO
    3 min read
    How to Reset Next.js Development Cache?
    Next.js, a widely used React framework, offers server-side rendering, static site generation, and robust development features. However, cached data in your development environment can sometimes cause issues. Resetting the cache ensures you work with the latest data and code. Let’s explore several me
    3 min read

    Next js Styling

    How to Add Stylesheet in Next.js ?
    In Next.js, adding a stylesheet enhances your app's styling capabilities. Import CSS files directly in your components or pages using ES6 import syntax. Next.js optimizes and includes these styles in the build process, ensuring efficient and modular CSS management.In this post, we are going to learn
    4 min read
    Controlling the specificity of CSS Modules in a Next.js App
    CSS Modules are one of the popular techniques that are used for local scoping CSS in JavaScript behavioral applications. In Next.js applications, CSS Modules are mostly used to generate the unique class names for our styles, preventing them from conflicting with the styles from different components
    4 min read
    Install & Setup Tailwind CSS with Next.js
    Tailwind is a popular utility first CSS framework for rapidly building custom User Interfaces. It provides low-level classes, those classes combine to create styles for various components. You can learn more about Tailwind CSS here.  Next.js: Next.js is a React-based full-stack framework developed b
    2 min read
    CSS-in-JS Next JS
    CSS-in-JS in Next.js enables you to write CSS styles directly within your JavaScript or TypeScript files. This approach allows you to scope styles to components and leverage JavaScript features, improving maintainability and modularity.In this article learn how to use CSS-in-JS in NextJS its syntax,
    3 min read
    Next.js Styling: Sass
    Next.js supports various styling options, including Sass, which allows for more advanced styling techniques like variables, nested rules, and mixins. Integrating Sass into a Next.js project enhances your styling capabilities and makes managing styles more efficient and maintainable.In this article,
    3 min read

    Next js Optimizing

    Next.js Bundle Optimization to improve Performance
    In this article, We will learn various ways to improve the performance of the NextJS bundle which results in increasing the performance of NextJS applications in Google PageSpeed Insights or Lighthouse. As per the documentation, NextJS is a React framework that gives you the building blocks to creat
    6 min read
    Next JS Image Optimization: Best Practices for Faster Loading
    Large and unoptimized images can impact a website's performance on loading time. Optimizing images is necessary to improve the performance of the website. Next.js provides built-in support for image optimization to automate the process, providing a balance between image quality and loading speed. Pr
    4 min read
    Next.js Functions : generateMetadata
    NextJS is a React framework that is used to build full-stack web applications. It is used both for front-end as well and back-end. It simplifies React development with powerful features. One of its features is generateMetadata. In this article, we will learn about the generateMetadata function with
    3 min read
    Lazy Loading in Next.js
    Lazy loading in NextJS is a technique used to improve the performance and loading times of web applications built with the NextJS framework. With lazy loading, components or modules are loaded only when they are needed, rather than upfront when the page is initially rendered. This means that resourc
    4 min read
    How to Add Google Analytics to a Next.js Application?
    Adding Google Analytics to a Next.js application allows you to track and analyze your website's traffic and user actions. This can provide valuable insights into how users interact with your site, helping you make informed decisions to improve user experience and drive business goals. This article h
    3 min read
    Next.js Static File Serving
    Next.js allows you to serve static files from the public directory, making them accessible at the root URL. This feature enables easy inclusion of assets like images, fonts, and static HTML files, enhancing your application's functionality and user experience.Static filesAll those files which need t
    2 min read

    Next js Configuring

    Next.js TypeScript
    NextJS is a powerful and popular JavaScript framework that is used for building server-rendered React applications. . It provides a development environment with built-in support for TypeScript, as well as a set of features that make it easy to build and deploy web applications. It was developed by Z
    4 min read
    Next.js ESLint
    ESLint is a widely-used tool for identifying and fixing problems in JavaScript code. In Next.js projects, integrating ESLint helps ensure code quality and consistency by enforcing coding standards and catching errors early in the development process.In this article, we'll explore how to set up ESLin
    3 min read
    Next.js Environment Variables
    Environment variables are a fundamental aspect of modern web development, allowing developers to configure applications based on the environment they are running in (development, testing, production, etc.). In Next.js, environment variables provide a flexible and secure way to manage configuration s
    3 min read
    MDX in Next JS
    MDX is a lightweight markup language used to format text. It allows you to write using plain text syntax and convert it to structurally valid HTML. It's commonly used for writing content on websites and blogs. In this article we will see more about MDX in Next JSWhat is MDX?MDX stands for Multidimen
    4 min read
    Next.js src Directory
    The NextJS src directory is a project structure that is optional but is widely recommended. It helps to organize the project in a well-defined structure.Organizing a Next.js project with a well-planned folder structure is important for readability, scalability, and maintainability. A clear structure
    4 min read
    Draft Mode Next.js
    Draft Mode in Next.js enables content previewing and editing directly within your application, allowing content creators to view changes before publishing. This feature is especially useful for content management systems or any app where content updates need to be reviewed in real-time. We will expl
    5 min read
    Next.js Security Headers
    Next.js security headers help protect your application from common web vulnerabilities by enforcing security policies at the HTTP level. By configuring these headers, you enhance your app's security and ensure safer interactions for your users.In this article, we’ll learn about security headers, the
    6 min read
    Unit Testing in Next JS: Ensuring Code Quality in Your Project
    Unit testing in Next.js ensures that individual components and functions work as expected. It improves code reliability, helps catch bugs early, and facilitates easier maintenance and refactoring by verifying the correctness of isolated units of code. Unit testing is an essential aspect of software
    4 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences