Simple strategy to learn NodeJs

Node.js is an open source

Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a browser. Node.js lets developers use JavaScript to write command line tools and for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user’s web browser. Consequently, Node.js represents a “JavaScript everywhere” paradigm, unifying web-application development around a single programming language, rather than different languages for server- and client-side scripts. Though .js is the standard filename extension for JavaScript code, the name “Node.js” doesn’t refer to a particular file in this context and is merely the name of the product.

Node.js has an event-driven architecture capable of asynchronous I/O. These design choices aim to optimize throughput and scalability in web applications with many input/output operations, as well as for real-time Web applications (e.g. real-time communication programs and browser games).


Node.js allows the creation of Web servers and networking tools using JavaScript and a collection of “modules” that handle various core functionalities. Modules are provided for file system I/O, networking (DNS,HTTP, TCP, TLS/SSL, or UDP), binary data (buffers), cryptography functions, data streams, and other core functions. Node.js’s modules use an API designed to reduce the complexity of writing server applications. JavaScript is the only language that Node.js supports natively, but many compile-to-JS languages are available. As a result, Node.js applications can be written in CoffeeScript, Dart, TypeScript, ClojureScript and others.

Node.js is primarily used to build network programs such as Web servers. The most significant difference between Node.js and PHP is that most functions in PHP block until completion (commands only execute after previous commands finish), while Node.js functions are non-blocking (commands execute concurrently or even in parallel, and use callbacks to signal completion or failure).

Nodejs is officially supported on Linux, macOS and Microsoft Windows7 and Server 2008 (and later), with tier 2 support for SmartOSand IBM AIXand experimental support for FreeBSD. OpenBSD also works, and LTS versions available for IBM (AS/400).The provided source code may also be built on similar operating systems to those officially supported or be modified by third parties to support others such as NonStop OSand Unix servers. Node.js brings event-driven programming to web servers, enabling development of fast web servers in JavaScript.

Developers can create scalable servers without using threading, by using a simplified model of event-driven programming that uses callbacks to signal the completion of a task.Node.js connects the ease of a scripting language (JavaScript) with the power of Unix network programming. Node.js was built on the Google V8 JavaScript engine since it was open-sourced under the BSD license. It is proficient with internet fundamentals such as HTTP, DNS, TCP. JavaScript was also a well-known language, making Nodejs accessible to the web development community.

You May also like :

Share via
Copy link