To read the file (text, HTML, JSON, etc) from the system or server using node js, you can do it in two ways first asynchronous (non-blocking) and second synchronous (blocking). You can read a file in NodeJS using fs the module, and can also read files in synchronous