NodeJS
Node.js is an open-source and cross-platform runtime environment built on Chrome’s V8 JavaScript engine for executing JavaScript code outside of a browser. You need to recollect that NodeJS isn’t a framework, and it’s not a programing language. It provides an event-driven, non-blocking (asynchronous) I/O and cross-platform runtime environment for building highly scalable server-side applications using JavaScript.
Most people are confused and understand it’s a framework or a programing language. We often use Node.js for building back-end services like APIs, Web App, or Mobile App. It’s utilized in production by large companies like Paypal, Uber, Netflix, Walmart, etc.
Why to learn NodeJS?
- Easy Scalability
- Real time web apps
- Fast Suite
- Easy to learn and code
- Advantage of Caching
- Data Streaming
- Hosting
- Corporate Support
Example:
// Node.js program to display some // text on consle screen // Accessing console module const console = require('console'); // Calling console.info() method console.info("Welcome to GeeksforGeeks");
Steps to Run: First, Download and Install in your system and then use the following command to run your code.
node filename.js
Output: The output will dispaly on console screen.
Welcome to GeeksforGeeks
Learn more about Node.js:
- Introduction to NodeJS
- Node.js NPM (Node Package Manager)
- Installation of Node.js on Windows
- Installation of Node.js on Linux
Complete References:
- Node.js Assert Complete Reference
- Node.js Buffer Complete Reference
- Node.js Console Complete Reference
- Node.js Crypto Complete Reference
- Node.js DNS Complete Reference
- Node.js File System Complete Reference
- Node.js Globals Complete Reference
- Node.js HTTP Module Complete Reference
- Node.js HTTP2 Complete Reference
- Node.js OS Complete Reference
- Node.js Path Module Complete Reference
- Node.js Process Complete Reference
- Node.js Query String Complete Reference
- Node.js Stream Complete Reference
- Node.js String Decoder Complete Reference
- Node.js Timers Complete Reference
- Node.js TLS/SSL Complete Reference
- Node.js UDP/DataGram Complete Reference
- Node.js URL Complete Reference
- Node.js Utility Complete Reference
- Node.js V8 Complete Reference
- Node.js VM Complete Reference
- Node.js Zlib Complete Reference
- Node.js Questions Complete Reference
Recent Articles on Node.js
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above