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
  • NodeJS Tutorial
  • NodeJS Exercises
  • NodeJS Assert
  • NodeJS Buffer
  • NodeJS Console
  • NodeJS Crypto
  • NodeJS DNS
  • NodeJS File System
  • NodeJS Globals
  • NodeJS HTTP
  • NodeJS HTTP2
  • NodeJS OS
  • NodeJS Path
  • NodeJS Process
  • NodeJS Query String
  • NodeJS Stream
  • NodeJS String Decoder
  • NodeJS Timers
  • NodeJS URL
  • NodeJS Interview Questions
  • NodeJS Questions
  • Web Technology
Open In App
Next Article:
Node.js Timers module
Next article icon

Node.js File System Complete Reference

Last Updated : 31 May, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Node.js File System module is used to handle file operations like creating, reading, deleting, etc. Node.js provides an inbuilt module called FS (File System). Node.js gives the functionality of file I/O by providing wrappers around the standard POSIX functions. All file system operations can have synchronous and asynchronous forms depending on user requirements

Asynchronous vs Synchronous Methods

The fs module offers both asynchronous and synchronous methods. Asynchronous methods are non-blocking and typically use callbacks or Promises for handling operations, while synchronous methods block the execution until the operation completes.

Example: Below is an example of a NodeJS file System.

JavaScript
    // Node.js program to demonstrate the     // fsPromises.opendir() method      // Import the filesystem module     const fs = require('fs');     const fsPromises = fs.promises;      fsPromises.opendir(__dirname)         .then(function(result) {             console.log(result);         })         .catch(function(error) {             console.log(error);         }); 

Output:

Dir {
[Symbol(kDirHandle)]: DirHandle {},
[Symbol(kDirBufferedEntries)]: [],
[Symbol(kDirPath)]: 'C:\\Users\\Lenovo\\Downloads\\Internship\\Program',
[Symbol(kDirClosed)]: false,
[Symbol(kDirOptions)]: { bufferSize: 32, encoding: 'utf8' },
[Symbol(kDirReadPromisified)]: [Function: bound [kDirReadImpl]],
[Symbol(kDirClosePromisified)]: [Function: bound close]
}

The Complete NodeJS File System are listed below:

Node.js File System

Description

Node.js fs.readFile() MethodThis method read the entire file into buffer. To load the fs module we use require() method.
Node.js fs.exists() MethodThe fs.exists() method is used to test whether the given path exists or not in the file system.
Node.js fs.existsSync() MethodThe fs.existsSync() method is used to synchronously check if a file already exists in the given path or not.
Node.js fs.mkdir() MethodThe fs.mkdir() method i Node.js is used to create a directory asynchronously.
Node.js fs.truncate() MethodThe fs.truncate() method in node.js is used to change the size of the file i.e either increase or decrease the file size. 
Node.js fs.renameSync() MethodThe fs.renameSync() method is used to synchronously rename a file at the given old path to the given new path.
Node.js fs.rmdir() MethodThe fs.rmdir() method is used to delete a directory at the given path.
Node.js fs.stat() MethodThe fs.stat() method is used to return information about the given file or directory. 
Node.js fs.mkdtempSync() MethodThe fs.mkdtempSync() method is an inbuilt application programming interface of fs module
Node.js fs.realpath() MethodThe fs.realPath() method is used to compute the canonical pathname of the given path.
Node.js fs.open() MethodThis is used. fs.readFile() is only for reading the file and similarly fs.writeFile() 
Node.js fs.mkdirSync() MethodThis is an inbuilt application programming interface of fs module which provides an API for interacting with the file system in a manner closely modeled around standard POSIX functions.
Node.js fs.statSync() MethodThe fs.statSync() method is used to synchronously return information about the given file path.
Node.js fs.write() MethodThe fs.write() method is an inbuilt application programming interface of fs module which is used to specify the position
Node.js fs.createReadStream() MethodThis is an inbuilt application programming interface of fs module which allow you to open up a file/stream and read the data present in it.
Node.js fs.openSync() MethodThis is an inbuilt application programming interface of fs module which is used to return an integer value that represents the file descriptor.
Node.js fs.rmdirSync() MethodThe fs.rmdirSync() method is used to synchronously delete a directory at the given path.
Node.js fs.ftruncate() MethodThe fs.ftruncate() method is used to change the size of the file i.e. either increase or decrease the file size.
Node.js fs.truncateSync() MethodThe fs.truncateSync() method is used to synchronously change the size of the file 
Node.js fs.readdir() MethodThe fs.readdir() method is used to asynchronously read the contents of a given directory.
Node.js fs.writeFileSync() MethodThe ‘fs’ module of Node.js implements the File I/O operation. Methods in the fs module can be synchronous as well as asynchronous.
Node.js fs.readFileSync() MethodThe fs.readFileSync() method is an inbuilt application programming interface of fs module which is used to read the file and return its content.
Node.js fs.lstat() MethodThe fs.lstat() method is similar to the fs.stat() method except that it is used to return
Node.js fs.symlinkSync() MethodThe fs.symlinkSync() method is used to synchronously create a symlink to the specified path.
Node.js fs.realpathSync() MethodThe fs.realpathSync() method is used to synchronously compute the canonical pathname of a given path.
Node.js fs.fstat() MethodThe fs.fstat() method is used to return information about the given file descriptor. 
Node.js fs.mkdtemp() MethodThe fs.mkdtemp() method is used to create a unique temporary directory.
Node.js fs.lstatSync() MethodThis  is used to synchronously return information about the symbolic link that is being used to refer to a file or directory.
Node.js fs.readdirSync() Me thod This is used to synchronously read the contents of a given directory.
Node.js fs.writeFile() MethodThe fs.writeFile() method is used to asynchronously write the specified data to a file.
Node.js fs.fstatSync() MethodThe fs.fstatSync() method is used to synchronously return information about the given file descriptor.
Node.js fs.copyFileSync() FunctionThis  is used to synchronously copy a file from the source path to destination path. 
Node.js fs. lchown() Methodfs.chownSync() method which does dereference the links to their path.
Node.js fs. lchownSync() Methodfs.chownSync() method which does dereference the links to their path.
Node.js fs.closeSync() Methodfs.closeSync() on a file descriptor while some other operation is being performed on it may lead to undefined behavior.
Node.js fs.close() MethodThis is used to asynchronously close the given file descriptor thereby clearing the file that is associated with it.
Node.js fs.fchmod() MethodThe fs.fchmod() method is used to change the permissions of a given file descriptor.
Node.js fs.link() MethodThe fs.link() method is used to create a hard link to the given path.
Node.js fs.symlink() FunctionThe fs.symlink() method is used to create a symlink to the specified path.
Node.js fs.unlinkSync() MethodThe fs.unlinkSync() method is used to synchronously remove a file or symbolic link from the filesystem.
Node.js fs.chmodSync() MethodThe fs.chmodSync() method is used to synchronously change the permissions of a given path.
Node.js fs.chmod() MethodThese permissions can be specified using string constants or octal numbers that correspond to their respective file modes.
Node.js fs.unlink() MethodThe fs.unlink() method is used to remove a file or symbolic link from the filesystem. 
Node.js fs.fchmodSync() MethodThe fs.fchmodSync() method is an inbuilt application programming of fs module which is used to synchronously change the permissions of a given file descriptor.
Node.js fs.readlinkSync() MethodThis  is used to synchronously return a symbolic link’s value, i.e. the path it is linked to.
Node.js fs. linksync() MethodThe hard link created would still point to the same file even if the file is renamed. 
Node.js fs.futimesSync() Method This is used to synchronously change the modification and access timestamps of given file descriptor. T
Node.js fs.utimesSync() MethodThe fs.utimesSync() method is used to synchronously change the modification and access timestamps of a file. 
Node.js fs.utimes() MethodThe fs.utimes() method is used to asynchronously change the modification and access timestamps of a file.
Node.js fs.opendirSync() MethodThe fs.opendirSync() method is used to synchronously open a directory in the file system.
Node.js fs.opendir() Method It creates an fs.Dir object that is used to represent the directory.
Node.js fs.appendFile() FunctionThe fs.appendFile() method is used to asynchronously append the given data to a file. A new file is created if it does not exist. 
Node.js fs.chown() MethodThe fs.chown() method is used to asynchronously change the owner and group of the given path.
Node.js fs.fchown() FunctionThe fs.fchown() method is used to change the owner and group of the given file descriptor. 
Node.js fs.copyFile() FunctionThe fs.copyFile() method is used to asynchronously copy a file from the source path to destination path.
Node.js fs.appendFileSync() FunctionA new file is created if it does not exist. The optional options parameter can be used to modify the behavior of the operation.
Node.js fs. fchownSync() Method The function accepts a user id and group id that can be used to set the respective owner and group. It does not return anything.
Node.js fs.chownSync() MethodThe fs.chownSync() method is used to synchronously change the owner and group of the given path.
Node.js fs.accessSync() MethodThe fs.accessSync() method is used to synchronously test the permissions of a given file or directory. 
Node.js fs.access() MethodThe permissions to be checked can be specified as a parameter using file access constants.
Node.js fs.watchFile() MethodThe fs.watchFile() method is used to continuously watch for changes on the given file.
Node.js fsPromises.mkdtemp() MethodThe fsPromises.mkdtemp() method is an inbuilt method which creates a unique temporary directory and resolves the Promise with the created directory path.
Node.js fsPromises.chmod() MethodThe fsPromises.chmod() method is used to change the permissions of a given path. 
Node.js fs.unwatchFile() MethodThe fs.unwatchFile() method is used to stop watching for changes on the given file. 
Node.js fsPromises.open() MethodThe fsPromises.open() method is used to asynchronously open a file that returns a Promise that, when resolved, yields a FileHandle object.
Node.js fsPromises.mkdir() MethodThis is used to asynchronously create a directory then resolves the Promise with either no arguments, or the first directory path created if recursive is true.
Node.js fs.promise.readdir() MethodThe fs.promise.readdir() method defined in the File System module of Node.js.
Node.js fsPromises.appendFile() FunctionThe fsPromises.appendFile() method is used to asynchronously append the given data to a file.
Node.js fsPromise.lstat() MethodThe fs.promise.lstat() method is defined in the File System module of Node.js.
Node.js fsPromises.stat() MethodThe fsPromises.stat() method is used to return information about the given file or directory.
Node.js fsPromises.realpath() MethodThe fsPromises.realPath() method determines the actual location of path using the same semantics as the fs.realpath.native() function
Node.js fs.read() MethodNode.js is used for server-side scripting. Reading and writing files are the two most important operations that are performed in any application.
Node.js fsPromises.chown() MethodThe fsPromises.chown() method is used to change the ownership of a file then resolves the Promise with no arguments upon success.
Node.js fs.createWriteStream() MethodThis is an inbuilt application programming interface of fs module which allows to quickly make a writable stream for the purpose of writing data to a file. 
Node.js fs.futimes() MethodThe fs.futimes() method is used to asynchronously change the modification and access timestamps of given file descriptor.
Node.js fsPromises.truncate() MethodThe fsPromises.truncate() method is defined in the File System module of Node.js.
Node.js fsPromises.symlink() MethodThe fsPromises.symlink() method is used to create a symlink to the specified path then resolves the Promise with no arguments upon success. 
Node.js fsPromises.lchmod() MethodThe fsPromises.lchmod() method is used to change the permissions of a given path.
Node.js fsPromises.lchown() MethodThe fsPromises.lchown() method is used to change the ownership of a file then resolves the Promise with no arguments upon success
Node.js fsPromises.truncate() MethodThe fsPromises.truncate() method in node.js is used to change the size of the file i.e. either increase or decrease the file size.
Node.js fsPromises.opendir() MethodThe fsPromises.opendir() method is used to asynchronously open a directory in the file system.
Node.js fsPromises.utimes() MethodThe fsPromises.utimes() method is used to asynchronously change the modification and access timestamps of a file. 
Node.js fsPromises.copyFile() MethodThe fsPromises.copyFile() method is used to asynchronously copy a file from the source path to destination path. 
Node.js fsPromises.rename() MethodThe fsPromises.rename() method is used to asynchronously rename a file at the given old path to a given new path. 
Node.js fs.promises.appendFile() MethodThe fs.promises.appendFile() method of File System module in Node.js is used to interact with the hard disk of the user’s computer.
Node.js fsPromises.rmdir() MethodThe fsPromises.rmdir() method is used to delete a directory at the given path. It can also be used recursively to remove nested directories. 
Node.js fsPromises.writeFile() MethodThe fsPromises.writeFile() method is used to asynchronously write the specified data to a file. By default, the file would be replaced if it exists.
Node.js fsPromises.readFile() MethodThe fsPromises.readFile() method is used to read the file. This method read the entire file into buffer.
Node.js fsPromises.access() MethodThe fsPromises.access() method is used to test the permissions of a given file or directory specified by path. 
Node.js stats.ino PropertyThe stats.ino property is an inbuilt application programming interface of the fs.Stats class is used to get the “Inode” number of the file specified by the file system.
Node.js stats.birthtimeNs PropertyThis is an inbuilt application programming interface of the fs.Stats class is used to get the timestamp when the file is created since the POSIX epoch expressed in milliseconds.
Node.js stats.atimeNs PropertyThis is  an inbuilt application programming interface of the fs.Stats class is used to get the timestamp when the file is accessed last time since the POSIX epoch expressed in nanoseconds.
Node.js fsPromises.opendir() Method The File System module is basically to interact with the hard disk of the user’s computer. The method is used to asynchronously open a directory.
Node.js stats.mtimeNs PropertyThe stats.mtimeNs property is an inbuilt application programming interface of the fs.
Node.js stats.isFIFO() MethodThis  is an inbuilt application programming interface of the fs.Stats class which is used to check whether fs.Stats object describes a first-in-first-out (FIFO) pipe or not.
Node.js stats.isSymbolicLink() MethodThis is an inbuilt application programming interface of the fs.Stats class which is used to check whether fs.Stats object describes a symbolic link or not.
Node.js stat.isSocket() MethodThe stats.isSocket() method is an inbuilt application programming interface of the fs.
Node.js stats.dev PropertyThe stats.dev property is an inbuilt application programming interface of the fs.
Node.js stats.mtime PropertyThe stats.mtime property is an inbuilt application programming interface of the fs.Stats class is used to get the timestamp when the file is modified last time.
Node.js filehandle.readFile() MethodThe filehandle.readFile() method is used to asynchronously read the file contents. This method reads the entire file into the buffer. It Asynchronously reads the entire contents of a file.
Node.js stats.ctimeNs PropertyThe stats.ctimeNs property is an inbuilt application programming interface of the fs.
Node.js stats.atime PropertyThis used to get the time and date when the file is accessed last time.
Node.js stats.birthtime PropertyThis is used to get the timestamp when the file is created.
Node.js stats.ctime PropertyThe stats.ctime property is an inbuilt application programming interface of the fs.
Node.js stats.ctimeMs Property from fs.Stats ClassThe stats.ctimeMs property is an inbuilt application programming interface of the fs.
Node.js stats.mtimeMs Property from fs.Stats ClassThe stats.mtimeMs property is an inbuilt application programming interface of the fs.Stats class is used to get the timestamp 
Node.js stats.blocks Property from fs.Stats ClassThe stats.blocks property is an inbuilt application programming interface of the fs.Stats class is used to get the number of blocks allocated for the file.
Node.js stats.isCharacterDevice() Method from fs.Stats ClassThe stats.isCharacterDevice() method is an inbuilt application programming interface of the fs.Stats class which is used to check whether fs.Stats object is of a character device or not.
Node.js stats.atimeMs Property from fs.Stats ClassThe stats.atimeMs property is an inbuilt application programming interface of the fs.Stats class is used to get the timestamp 
Node.js stats.birthtimeMs Property from fs.Stats ClassThis is used to get the timestamp when the file is created since the POSIX epoch expressed in milliseconds.
Node.js filehandle.stat() Method from class: FileHandleThe File System module is basically to interact with the hard disk of the user’s computers. 
Node.js stats.blksize Property from fs.Stats ClassThe stats.blksize property is an inbuilt application programming interface of the fs.Stats class is used to get the block size for I/O operations in the file system in bytes.
Node.js stats.size Property from fs.Stats ClassThe stats.size property is an inbuilt application programming interface of the fs.Stats class is used to get the size of the file in bytes.
Node.js stats.nlink Property from fs.Stats ClassThe stats.nlink property is an inbuilt application programming interface of the fs.Stats class which is used to get the number of hard-links for the file.
Node.js stats.mode Property from fs.Stats ClassThe stats.mode property is an inbuilt application programming interface of the fs.Stats class which is used to get the file type and mode as bit-field.
Node.js stats.isFile() Method from fs.Stats ClassThe stats.isFile() method is an inbuilt application programming interface of the fs.Stats class which is used to check whether fs.Stats object describes a file or not.
Node.js stats.gid Property from fs.Stats ClassThis is used to get the numeric (number / bigint) identity of the group to which the file belongs to.
Node.js stats.uid Property from fs.Stats ClassThe stats.uid property is an inbuilt application programming interface of the fs.Stats class is used to get the numeric (number / bigint) identity of the user to which the file belongs to.
Node.js stats.rdev Property from fs.Stats ClassThis  is used to get the numeric (number / bigint) identity of the device in which the file is stored in the file is considered to be “special”.
Node.js fs.filehandle.utimes() MethodThe fs.filehandle.utimes() method is an inbuilt application programming interface of class fs.filehandle within File System
Node.js fs.filehandle.truncate() MethodThis is used to truncate the particular file object and only that much byte will be retained which passed as an integer in truncate() method.
Node.js fs.Dirent.isFIFO() MethodThis is used to check if the particular dirent describes a first in first out pipe or not.
Node.js fs.filehandle.fd() MethodThis is used to provide the numeric file descriptor of this file handle object.
Node.js fs.Dirent.isSocket() MethodThis is used to check if the particular dirent describes a Socket or not.
Node.js fs.Dirent.isFile() MethodThis is used to check if the particular dirent describes a File or not.
Node.js fs.filehandle.write() MethodThis is an inbuilt application programming interface of class fs.filehandle within File System module which is used to write the data form the buffer to that particular file.
Node.js fs.Dir.close() MethodThis  is used to close the directory’s underlying resource handle asynchronously.
Node.js fs.Dirent.isCharacterDevice() MethodThis is used to check if the particular dirent describes a character device or not.
Node.js fs.Dir.read() MethodThis is used to read the each next directory (dirent) one by one asynchronously.
Node.js fs.Dirent.isBlockDevice() MethodThis is used to check if the particular dirent describes a block device or not.
Node.js filehandle.close() MethodThis is used to asynchronously close the given file descriptor thereby clearing the file that is associated with it.
Node.js filehandle.read() MethodIn order to read files without file descriptor the readFile() method of the filehandle package can be used.
Node.js stats.isDirectory() Method from fs.Stats ClassThis is used to check whether fs.Stats object describes a file system directory or not.
Node.js filehandle.writeFile() Method from class: FileHandleThis is used to defined in the File System module of Node.js. The File System module is basically to interact with the hard disk of the user’s computer.
Node.js fs.Dir.path() MethodThis is used to defined in the File System module of Node.js. The File System module is basically to interact with the hard disk of the user’s computer.
Node.js fs.filehandle.datasync() Methodfs.filehandle within File System module which is used to sync the data of the file.
Node.js fs.filehandle.chmod() Methodfs.filehandle within File System module which is used to change the permission of the particular file.
Node.js stats.isBlockDevice() Method from fs.Stats ClassThis  is used to check whether fs.Stats object is of a block device or not.
Node.js fs.filehandle.chown() MethodThis is used to change the ownership of the particular file.
Node.js fs.filehandle.sync() Methodfs.filehandle within File System module which is used to synchronize this file’s in-core state with the storage device.
Node.js filehandle.truncate() MethodThe truncate() method used to modify the inner contents of the file by ‘len’ bytes.
Node.js fs.dirent.name PropertyThe fs.Dirent.name property is an inbuilt application programming interface of class fs.Dirent
Node.js filehandle.appendFile() MethodThe File System module is basically to interact with the hard disk of the user’s computer. 
Node.js fs.Dirent.isDirectory() MethodThis is used to check if the particular dirent describes a Directory or not.
Node.js fs.Dirent.isSymbolicLink() MethodThis is used to check if the particular dirent describes a SymbolicLink or not.
Node.js fs.Dir.readSync() Methodfs.Dir within File System module which is used to read the each next dirent of directory.
Node.js fs.Dir.closeSync() MethodThis is used to close the directory’s underlying resource handle synchronously.
Node.js fs.promises.link() MethodThe fs.promises.link() method is an inbuilt application programming interface of the fs.promises class which is used to make a new name for a file.
Node.js fs.watch() Methodfs module which is used to continuously watch for changes in the given file or directory.
Node.js fs.readlink() MethodThe fs.readlink() method is an inbuilt application programming interface of fs module which is used to asynchronously return a symbolic link’s value.
Node.js fs.fdatasync() MethodThe fs.fdatasync() (Added in v0.1.96) method is an inbuilt application programming interface of the fs module which is similar to fs.fsync()
Node.js fs.fsync() MethodIt has both synchronous and asynchronous forms. The asynchronous form always takes a completion callback as its last argument.
Node.js fs.rmSync() MethodThe fs.rmSync() method is used to synchronously delete a file at the given path.
Node.js fs.rm() MethodThe fs.rm() method is used to delete a file at the given path. It can also be used recursively to remove directories.
Node.js fs.writeSync() Method This is used to work with files on the computer. The functions of the module can be used by importing the fs module.

Next Article
Node.js Timers module

K

kartik
Improve
Article Tags :
  • Web Technologies
  • Node.js
  • Node.js-Methods
  • Node.js-fs-module

Similar Reads

    Node.js Tutorial
    Node.js is a powerful, open-source, and cross-platform JavaScript runtime environment built on Chrome's V8 engine. It allows you to run JavaScript code outside the browser, making it ideal for building scalable server-side and networking applications.JavaScript was earlier mainly used for frontend d
    4 min read

    Node.js Basic

    NodeJS Introduction
    NodeJS is a runtime environment for executing JavaScript outside the browser, built on the V8 JavaScript engine. It enables server-side development, supports asynchronous, event-driven programming, and efficiently handles scalable network applications. NodeJS is single-threaded, utilizing an event l
    5 min read
    How to Install Node.js on Linux
    Installing Node.js on a Linux-based operating system can vary slightly depending on your distribution. This guide will walk you through various methods to install Node.js and npm (Node Package Manager) on Linux, whether using Ubuntu, Debian, or other distributions.PrerequisitesA Linux System: such a
    6 min read
    How to Install Node.js on Windows
    Installing Node.js on Windows is a straightforward process, but it's essential to follow the right steps to ensure smooth setup and proper functioning of Node Package Manager (NPM), which is crucial for managing dependencies and packages. This guide will walk you through the official site, NVM, Wind
    6 min read
    NodeJS Basics
    NodeJS is a JavaScript runtime environment built on Chrome’s V8 JavaScript engine that allows developers to execute JavaScript code outside the browser. It can make console-based and web-based NodeJS applications. Some of the features of the NodeJs are mentioned below:Non-blocking I/O: NodeJS is asy
    5 min read
    Node First Application
    NodeJS is widely used for building scalable and high-performance applications, particularly for server-side development. It is commonly employed for web servers, APIs, real-time applications, and microservices.Perfect for handling concurrent requests due to its non-blocking I/O model.Used in buildin
    4 min read
    NodeJS REPL (READ, EVAL, PRINT, LOOP)
    NodeJS REPL (Read-Eval-Print Loop) is an interactive shell that allows you to execute JavaScript code line-by-line and see immediate results. This tool is extremely useful for quick testing, debugging, and learning, providing a sandbox where you can experiment with JavaScript code in a NodeJS enviro
    5 min read
    NodeJS NPM
    NPM (Node Package Manager) is a package manager for NodeJS modules. It helps developers manage project dependencies, scripts, and third-party libraries. By installing NodeJS on your system, NPM is automatically installed, and ready to use.It is primarily used to manage packages or modules—these are
    6 min read
    NodeJS Global Objects
    In NodeJS global objects are the objects that are accessible in the application from anywhere without explicitly using the import or require. In browser-based JavaScript, the window object is the global scope, meaning it holds all global variables and functions. In NodeJS, instead of the window obje
    6 min read
    NodeJS Modules
    In NodeJS, modules play an important role in organizing, structuring, and reusing code efficiently. A module is a self-contained block of code that can be exported and imported into different parts of an application. This modular approach helps developers manage large projects, making them more scal
    6 min read
    Node.js Local Module
    A local module in Node.js refers to a custom module created in an application. Unlike the built in or third-party modules, local modules are specific to the project and are used to organize and reuse your code across different parts of your application.Local Module in Node.jsLocal modules in Node.js
    2 min read

    Node.js Assert Module

    Node.js Assert Module
    Assert module in Node.js provides a bunch of facilities that are useful for the assertion of the function. The assert module provides a set of assertion functions for verifying invariants. If the condition is true it will output nothing else an assertion error is given by the console.Assert Module i
    3 min read
    Node.js assert() Function
    The assert() function in Node.js is used for testing and verifying assumptions in your code. It is part of the built-in assert module, which provides a set of assertion functions to perform various checks and validations.Node assert FunctionIn assert() function, if the value is not truth, then a Ass
    3 min read
    Node.js assert.deepStrictEqual() Function
    The assert module provides a set of assertion functions for verifying invariants. The assert.deepStrictEqual() function tests for deep equality between the actual and expected parameters. If the condition is true it will not produce an output else an assertion error is raised. Syntax: assert.deepStr
    2 min read
    Node.js assert.doesNotThrow() Function
    The assert module provides a set of assertion functions for verifying invariants. The assert.doesNotThrow() function asserts that the function fn does not throw an error. Syntax: assert.doesNotThrow(fn[, error][, message]) Parameters: This function accepts the following parameters as mentioned above
    3 min read
    Node.js assert.equal() Function
    The assert module provides a set of assertion functions for verifying invariants. The assert.equal() function tests for equality between the actual and the expected parameters. If the condition is true it will not produce an output else an assertion error is raised.  Syntax: assert.equal(actual, exp
    2 min read
    Node.js assert.ifError() Function
    The assert module provides a set of assertion functions for verifying invariants. The assert.ifError() function throws value if value is not undefined or null. When testing the error argument in callbacks, this function is very useful.Syntax:  assert.ifError(value) value: This parameter holds the ac
    2 min read
    Node.js assert.match() Function
    The assert module provides a set of assertion functions for verifying invariants. The assert.match() function expects the string input to match the regular expression. If the condition is true it will not produce an output else an assertion error is raised.  Syntax: assert.match(string, regexp[, mes
    2 min read
    Node.js assert.notDeepEqual() Function
    The assert module provides a set of assertion functions for verifying invariants. The assert.notDeepEqual() function tests deep strict inequality between the actual and the expected parameters. If the condition is true it will not produce an output else an assertion error is raised.Syntax: assert.no
    2 min read
    Node.js Assert Complete Reference
    Assert module in Node.js provides a bunch of facilities that are useful for the assertion of the function. The assert module provides a set of assertion functions for verifying invariants. If the condition is true it will output nothing else an assertion error is given by the console. Example: JavaS
    2 min read

    Node.js Buffer Module

    Node.js Buffers
    Node.js Buffers are used to handle binary data directly in memory. They provide a way to work with raw binary data streams efficiently, crucial for I/O operations, such as reading from files or receiving data over a network.Buffers in Node.jsBuffers are instances of the Buffer class in Node.js. Buff
    4 min read
    Node.js Buffer.copy() Method
    Buffer is a temporary memory storage that stores the data when it is being moved from one place to another. It is like an array of integers. The Buffer.copy() method simply copies all the values from the input buffer to another buffer. Syntax:buffer.copy( target, targetStart, sourceStart, sourceEnd
    2 min read
    Node.js Buffer.includes() Method
    Buffer is a temporary memory storage which stores the data when it is being moved from one place to another. It is like an array of integers. The Buffer.includes() method checks whether the provided value is present or included in the buffer or not. Syntax:buffer.includes( value, byteOffset, encodin
    2 min read
    Node.js Buffer.compare() Method
    Buffer is a temporary memory storage that stores the data when it is being moved from one place to another. It is like an array of integers. Buffer.compare() method compares the two given buffers.  Syntax: buffer1.compare( targetBuffer, targetStart, targetEnd, sourceStart, sourceEnd ) Parameters: Th
    3 min read
    Node.js Buffer.alloc() Method
    The Buffer.alloc() method is used to create a new buffer object of the specified size. This method is slower than Buffer.allocUnsafe() method but it assures that the newly created Buffer instances will never contain old information or data that is potentially sensitive. Syntax Buffer.alloc(size, fil
    2 min read
    Node.js Buffer.equals() Method
    The Buffer.equals() method is used to compare two buffer objects and returns True of both buffer objects are the same otherwise returns False. Syntax: buffer.equals( buf ) Parameters: This method accepts single parameter otherBuffer which holds the another buffer to compare with buffer object. Retur
    1 min read
    Node.js Buffer.subarray() Method
    The buffer.subarray() method is an inbuilt application programming interface of the buffer module which is used to crop a part of array i.e. create sub-array from an array.Syntax:   Buffer.subarray( starting_index, ending_index ) Parameters: This method has two parameters as mentioned above and desc
    3 min read
    Node.js Buffer.readIntBE() Method
    The Buffer.readIntBE() method is used to read the number of bytes for a buffer at a given offset and interprets the result as a two's complement signed value. Syntax: buffer.readIntBE( offset, byteLen ) Parameters: This method accepts two parameters as mentioned above and described below: offset: It
    2 min read
    Node.js Buffer.write() Method
    The Buffer.write() method writes the specified string into a buffer, at the specified position. If buffer did not contain enough space to fit the entire string, only part of string will be written. However, partially encoded characters will not be written. Syntax: buffer.write( string, offset, lengt
    2 min read
    Node.js Buffer Complete Reference
    Buffers are instances of the Buffer class in Node.js. Buffers are designed to handle binary raw data. Buffers allocate raw memory outside the V8 heap. Buffer class is a global class so it can be used without importing the Buffer module in an application. Example: JavaScript <script> // Node.js
    8 min read

    Node.js Console Module

    Node.js Console
    The console module is essential for debugging and logging in Node.js applications. It enables developers to print messages to the terminal, making it easier to monitor application behavior, track issues, and display runtime information.Console in Node.js The console module in Node.js is a built-in u
    4 min read
    Node.js console.assert() Method
    The console.assert() method is an inbuilt application programming interface of the console module which is used to assert value passed to it as a parameter, i.e. it checks whether the value is true or not, and prints an error message, if provided and failed to assert the value.  Syntax: console.asse
    2 min read
    Node.js console.clear() Method
    The console.clear() method is used to clear the stdout, when stdout is a TTY (Teletype) i.e. terminal it will attempt to clear the TTY. When stdout is not a TTY, this method does nothing. The console.clear() will work differently across different operating systems and terminal types. For Linux opera
    1 min read
    Node.js console.count() Method
    The console.count() method is an inbuilt application programming interface of the console module which is used to count label passed to it as a parameter, by maintaining an internal counter for that specific label. Syntax: console.count(label) Parameters: This method has one parameter as mentioned a
    2 min read
    Node.js console.countReset() Method
    The console.countReset() method is an inbuilt application programming interface of the console module which is used to reset the count for the specific label passed to it as a parameter. Syntax: console.countReset( label ); Parameters: This method has one parameter as mentioned above and described b
    2 min read
    Node.js console.debug() Method
    The console.debug() method is an inbuilt application programming interface of the console module which is used to print messages to stdout in a newline. Similar to the console.log() method. Syntax: console.debug(data, args); Parameters: This method has two parameters as mentioned above and described
    2 min read
    Node.js console.dir() Method
    The console.dir() method is used to get the list of object properties of a specified object. These object properties also have child objects, from which you can inspect for further information. Syntax: console.dir( object ) Parameters: This method accepts single parameter which holds the object elem
    1 min read
    Node.js console.error() Function
    The console.error() function from the console class of Node.js is used to display an error message on the console. It prints to stderr with a newline. Syntax:  console.error([data][, ...args]) Parameter: This function can contain multiple parameters. The first parameter is used for the primary messa
    1 min read
    Node.js console.info() Method
    The console.info() method is an inbuilt application programming interface of the console module which is used to print messages to stdout in a newline. It is similar to the console.log() method. Syntax: console.info(data, args); Parameters: This method has two parameters as mentioned above and descr
    2 min read
    Node.js Console Complete Reference
    The console module in Node.js provides a set of functions to output information to the terminal or command line, helping with debugging and logging. It is a built-in utility that is essential for monitoring and troubleshooting Node.js applications.It is a global object that provides a simple debuggi
    4 min read

    Node.js Crypto Module

    Node.js cipher.final() Method
    The cipher.final() method in Node.js is used to signal to the cipher object that the encryption or decryption process is complete. This method must be called after all data has been passed to the cipher object using the cipher.update() method. The cipher.final() method returns the remaining encrypte
    2 min read
    Node.js cipher.update() Method
    The cipher.update() method is an inbuilt application programming interface of class Cipher within crypto module which is used to update the cipher with data according to the given encoding format. Syntax: const cipher.update(data[, inputEncoding][, outputEncoding]) Parameters: This method takes the
    2 min read
    Node.js crypto.getCiphers() Method
    The crypto.getCiphers() method returns an array the names of all the supported cipher algorithms. Syntax: crypto.getCiphers() Parameters: This method doesn't accepts any parameters. Return Value: It returns the names of all the supported cipher algorithms. Below example illustrate the use of crypto.
    2 min read
    Node.js crypto.createDecipheriv() Method
    The crypto.createDecipheriv() method is an inbuilt application programming interface of crypto module which is used to create a Decipher object, with the stated algorithm, key and initialization vector i.e, (iv).  Syntax: crypto.createDecipheriv( algorithm, key, iv, options ) Parameters: This method
    3 min read
    Node crypto.createCipheriv() Method
    The crypto.createCipheriv() method is an inbuilt application programming interface of the crypto module which is used to create a Cipher object, with the stated algorithm, key, and initialization vector (iv).Syntax: crypto.createCipheriv( algorithm, key, iv, options )Parameters: This method accepts
    2 min read
    Node.js crypto.getDiffieHellman() Method
    The crypto.getDiffieHellman() method is used to create a predefined DiffieHellmanGroup key exchange object. Here, the favored groups are 'modp1', 'modp2', 'modp5', which are defined in RFC 2412 and 'modp14', 'modp15', 'modp16', 'modp17', 'modp18', defined in RFC 3526. Syntax: crypto.getDiffieHellman
    2 min read
    Node.js crypto.pbkdf2() Method
    The crypto.pbkdf2() method gives an asynchronous Password-Based Key Derivation Function 2 i.e. (PBKDF2) implementation. Moreover, a particular HMAC digest algorithm which is defined by digest is implemented to derive a key of the required byte length (keylen) from the stated password, salt, and iter
    2 min read
    Node crypto.createHash() Method
    The crypto.createHash() method is used to create a Hash object that can be used to create hash digests by using the stated algorithm. Syntax:crypto.createHash( algorithm, options )Parameters: This method accepts two parameters as mentioned above and described below:algorithm: It is dependent on the
    2 min read
    Node.js crypto.createHmac() Method
    The crypto.createHmac() method is used to create an Hmac object that uses the stated 'algorithm' and 'key'.Syntax:crypto.createHmac( algorithm, key, options )Parameters: This method accepts three parameters as mentioned above and described below:algorithm: It is dependent on the accessible algorithm
    2 min read
    Node.js Crypto Complete Reference
    Node.js crypto module handles cryptographic functionality. Cryptography is an important aspect when we deal with network security. ‘Crypto’ means secret or hidden. Cryptography is the science of secret writing with the intention of keeping the data secret. Example: JavaScript <script> // Node.
    5 min read

    Node.js DNS Module

    Node.js DNS
    Node.js DNS (Domain Name System) module provides methods for performing DNS lookups and working with domain names. It allows you to resolve domain names into IP addresses and vice versa, which is essential for network communications and server management.DNS Module in Node.jsThe DNS module in Node.j
    3 min read
    Node.js dns.getServers() Method
    The dns.getServers() method is an inbuilt application programming interface of the dns module which is used to get IP addresses of the current server.Syntax:   dns.getServers() Parameters: This method does not accept any parameters.Return: This method returns an array of IP addresses in RFC 5952 for
    1 min read
    Node.js dns.lookup() Method
    The dns.lookup() method is an inbuilt application programming interface of the dns module which is used to resolve IP addresses of the specified hostname for given parameters into the first found A (IPv4) or AAAA (IPv6) record. Syntax:dns.lookup( hostname, options, callback )Parameters: This method
    3 min read
    Node.js dns.lookupService() Method
    The dns.lookupService() method is an inbuilt application programming interface of the dns module which is used to resolve the addresses and port number to hostname using operating system's underlying getnameinfo implementation. Syntax: dns.lookupService( address, port, callback ) Parameters: This me
    2 min read
    Node.js dns.resolve() Method
    The dns.resolve() method is an inbuilt application programming interface of the dns module which is used to resolve hostname into an array of the resource records. Syntax:dns.resolve( hostname, rrtype, callback )Parameters: This method accept three parameters as mentioned above and described below:
    3 min read
    Node.js dns.resolve4() Method
    The dns.resolve4() method is an inbuilt application programming interface of the dns module which is used to resolve IPv4 address ('A' record) for the specified hostname using DNS protocol. Syntax:dns.resolve4( hostname, options, callback )Parameters: This method accept three parameters as mentioned
    2 min read
    Node.js dns.resolve6() Method
    The dns.resolve6() method is an inbuilt application programming interface of the dns module which is used to resolve IPv6 address ('AAAA' record) for the specified hostname using DNS protocol. Syntax: dns.resolve6( hostname, options, callback ) Parameters: This method accept three parameters as ment
    2 min read
    Node.js dns.resolveAny() Method
    The dns.resolveAny() method is an inbuilt application programming interface of the dns module which is used to resolve all records (i.e. 'ANY' or '*') for the specified hostname using DNS protocol. Syntax: dns.resolveAny( hostname, callback ) Parameters: This method has two parameters as mentioned a
    2 min read
    Node.js dns.resolveCname() Method
    The dns.resolveCname() method is an inbuilt application programming interface of the dns module which is used to resolve CNAME records for the specified hostname using DNS protocol. Syntax: dns.resolveCname( hostname, callback ) Parameters: This method has two parameters as mentioned above and descr
    2 min read
    Node.js DNS Complete Reference
    Node.js DNS is a node module used to do name resolution facility which is provided by the operating system as well as used to do an actual DNS lookup.Example:JavaScript<script> // Node.js program to demonstrate the // dns.resolve() method // Accessing dns module const dns = require('dns'); //
    3 min read

    Node.js File System Module

    Node.js File System
    The fs (File System) module in Node.js provides an API for interacting with the file system. It allows you to perform operations such as reading, writing, updating, and deleting files and directories, which are essential for server-side applications and scripts.Table of ContentNode.js file systemKey
    9 min read
    Node JS fs.readFile() Method
    ​In Node.js, the fs.readFile() method is a fundamental tool for reading files asynchronously, allowing your application to remain responsive while accessing file data. This method is part of Node.js's File System (fs) module, which provides an API for interacting with the file system.Syntaxfs.readFi
    3 min read
    Node.js fs.exists() Method
    The fs exists method in node is used to check if the input file or the directory exists or not. It is an inbuilt application programming interface of fs module which provides an API for interacting with the file system in a manner closely modeled around POSIX functions. Syntax:fs.exists( path, callb
    2 min read
    Node fs.existsSync() Method
    In Node.js, the fs.existsSync() method checks if a file or folder exists at a given path. It's synchronous, meaning it pauses the program until it finds the result (either true if it exists, or false if it doesn't). Because it stops everything while it works, it’s best used for quick checks in small
    3 min read
    Node fs.mkdir() Method
    The fs.mkdir() method in Node.js is used to create a directory asynchronously.Syntaxfs.mkdir(path, mode, callback)Parameters: This method accepts three parameters as mentioned above and described below: path: This parameter holds the path of the directory that has to be created.mode: This parameter
    2 min read
    Node.js fs.truncate() Method
    The fs.truncate() method in node.js is used to change the size of the file i.e either increase or decrease the file size. This method changes the length of the file at the path by len bytes. If len represents a length shorter than the file's current length, the file is truncated to that length. If i
    2 min read
    Node.js fs.renameSync() Method
    In Node.js, the fs.renameSync() method is part of the built-in File System (fs) module and is used to rename or move files and directories synchronously. This method is useful when you need to quickly change a file's name or move it to a different directory synchronously. It blocks the execution of
    3 min read
    Node.js fs.rmdir() Method
    The fs.rmdir() method is used to delete a directory at the given path. It can also be used recursively to remove nested directories.Syntax: fs.rmdir( path, options, callback )Parameters: This method accepts three parameters as mentioned above and described below: path: It holds the path of the direc
    3 min read
    Node.js fs.stat() Method
    The fs.stat() method is used to return information about the given file or directory. It returns an fs.Stat object which has several properties and methods to get details about the file or directory. Syntax:fs.stat( path, options, callback )Parameters: This method accept three parameters as mentione
    3 min read
    Node.js File System Complete Reference
    Node.js File System module is used to handle file operations like creating, reading, deleting, etc. Node.js provides an inbuilt module called FS (File System). Node.js gives the functionality of file I/O by providing wrappers around the standard POSIX functions. All file system operations can have s
    15+ min read

    Node.js Globals

    Node.js Timers module
    The Timers module in Node.js contains various functions that allow us to execute a block of code or a function after a set period of time. The Timers module is global, we do not need to use require() to import it.  The timers module has the following functions: Scheduling Timers: It is used to call
    3 min read
    Import and Export in Node.js
    Importing and exporting files are important parts of any programming language. Importing functions or modules enhances the reusability of code. When the application grows in size, maintaining a single file with all the functions and logic becomes difficult. It also hinders the process of debugging.
    3 min read
    Node Export Module
    In NodeJS, module.exports is used to share functions, objects, or values from one file to the other file so that other files can use them. This is an essential part of organizing and reusing code across different parts of your application, making it easier to manage and maintain.Here’s how exporting
    5 min read
    Node.js URL() Method
    The 'url' module provides utilities for URL resolution and parsing. The getters and setters implement the properties of URL objects on the class prototype, and the URL class is available on the global object. The new URL() (Added in v7.0.0, v6.13.0) method is an inbuilt application programming inter
    3 min read
    Node.js URLsearchParams API
    Node.js is an open-source project widely used for the development of dynamic web applications. The URLSearchParams API in Node.js allows read and write operations on the URL query. The URLSearchParams class is a global object and used with one of the four following constructors. Constructors: new UR
    4 min read
    Node.js Globals Complete Reference
    Node.js Global Objects are the objects that are available in all modules. Global Objects are built-in objects that are part of the JavaScript and can be used directly in the application without importing any particular module. Example: It repeats the execution of the callback after every t time in m
    2 min read

    Node.js HTTP Module

    NodeJS HTTP Module
    In NodeJS, the HTTP module is a core built-in module that enables developers to create and manage HTTP servers. It plays a crucial role in handling server-side HTTP requests and responses, allowing for seamless communication between clients and servers. In this article, we will dive into the NodeJS
    5 min read
    Node.js new Agent() Method
    The Node.js HTTP API is low-level so that it could support the HTTP applications. In order to access and use the HTTP server and client, we need to call them (by ‘require(‘http’)‘). HTTP message headers are represented as JSON Format. The new Agent({}) (Added in v0.3.4) method is an inbuilt applicat
    4 min read
    Node.js agent.createConnection() Method
    The Node.js HTTP API is low-level so that it could support the HTTP applications. In order to access and use the HTTP server and client, we need to call them (by ‘require(‘http’)‘). HTTP message headers are represented as JSON Format. The agent.createConnection() (Added in v0.11.4) method is an inbu
    2 min read
    Node.js agent.maxSockets Method
    The Node.js HTTP API is low-level so that it could support the HTTP applications. In order to access and use the HTTP server and client, we need to call them (by ‘require(‘http’)‘). HTTP message headers are represented as JSON Format. The agent.maxSockets (Added in v0.3.6) method is an inbuilt appli
    2 min read
    Node.js agent.maxFreeSockets Method
    The Node.js HTTP API is low-level so that it could support the HTTP applications. In order to access and use the HTTP server and client, we need to call them (by ‘require(‘http’)‘). HTTP message headers are represented as JSON Format. The agent.maxFreeSockets (Added in v0.11.7) method is an inbuilt
    2 min read
    Node.js http.ClientRequest.abort() Method
    The http.ClientRequest.abort() is an inbuilt application programming interface of class Client Request within http module which is used to abort the client request. Syntax: ClientRequest.abort() Parameters: This method does not accept any argument as a parameter. Return Value: This method does not r
    2 min read
    Node.js http.ClientRequest.connection Property
    The http.ClientRequest.connection is an inbuilt application programming interface of class ClientRequest within the HTTP module which is used to get the reference of underlying client request socket. Syntax: const request.connectionParameters: It does not accept any argument as the parameter. Return
    2 min read
    Node.js http.ClientRequest.protocol Method
    The http.ClientRequest.protocol is an inbuilt application programming interface of class ClientRequest within the HTTP module which is used to get the object of client request protocol. Syntax: const request.protocolParameters: This function does not accept any argument as a parameter. Return Value:
    2 min read
    Node.js http.ClientRequest.aborted Property
    The http.ClientRequest.aborted is an inbuilt application programming interface of class Client Request within http module which is used to check if the client request has been aborted or not. Syntax: request.aborted Parameters: It does not accept any argument as a parameter. Return Value: It does no
    2 min read
    Node.js HTTP Module Complete Reference
    To make HTTP requests in Node.js, there is a built-in module HTTP in Node.js to transfer data over the HTTP. To use the HTTP server in the node, we need to require the HTTP module. The HTTP module creates an HTTP server that listens to server ports and gives a response back to the client. Example: J
    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