NODE JS

NODE JS

Node.js lets developers use JavaScript to write command line tools and for server-side scripting. The ability to run JavaScript code on the server is often used to generate 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, as opposed to using different languages for the server- versus client-side programming.

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).

The Node.js distributed development project was previously governed by the Node.js Foundation, and has now merged with the JS Foundation to form the OpenJS Foundation. OpenJS Foundation is facilitated by the Linux Foundation's Collaborative Projects program.

V8 (JavaScript engine)

V8 is the JavaScript execution engine which was initially built for Google Chrome. It was then open-sourced by Google in 2008. Written in C++, V8 compiles JavaScript source code to native machine code at runtime.As of 2016, it also includes Ignition, a bytecode interpreter.

Package management

npm is the pre-installed package manager for the Node.js server platform. It installs Node.js programs from the npm registry, organizing the installation and management of third-party Node.js programs. Packages in the npm registry can range from simple helper libraries such as Lodash to task runners such as Grunt.

Event loop

Node.js registers with the operating system so the OS notifies it of asynchronous I/O events such as new connections. Within the Node.js runtime, events trigger callbacks and each connection is handled as a small heap allocation. Traditionally, relatively heavyweight OS processes or threads handled each connection. Node.js uses an event loop for concurrent I/O, instead of processes or threads.[59] In contrast to other event-driven servers,[which?] Node.js's event loop does not need to be called explicitly. Instead, callbacks are defined, and the server automatically enters the event loop at the end of the callback definition. Node.js exits the event loop when there are no further callbacks to be performed.

To view or add a comment, sign in

More articles by Shivani Ramanathan

  • From Dreams to Reality

    My Journey to Accenture as an ASE Achieving a milestone like securing a position at Accenture as an Associate Software…

  • Design Engineering

    Bridging Innovation and Practicality Introduction Design engineering is a multidisciplinary field that blends…

    2 Comments
  • Health Care Monitoring Application

    Comprehensive and Holistic Patient Care Health care monitoring applications are revolutionizing patient care by…

  • GAMING WEBPAGES

    Crafting a Gaming Website: My Journey from Beginner to Pro My adventure into web development started with a simple…

    1 Comment
  • The Importance of Updating Skills in the IT Field

    In today's rapidly evolving technological landscape, the importance of updating skills in the IT field cannot be…

  • "Tiny efforts yield massive outcomes"- Journey of Success

    Always go with the choice that scares you most ,because that's the one that is going to help you grow..

  • ETHICAL HACKING

    What is ethical hacking? Ethical hacking is the practice of testing a computer system, a network or an application to…

  • GENERATIVE AI

    Generative AI (genAI) is a broad label describing any type of artificial intelligence (AI) that can produce new text…

  • DEVOPS

    What Is DevOps? DevOps is a set of practices, tools, and a cultural philosophy that automate and integrate the…

  • Quantum computing

    Quantum computing is a rapidly-emerging technology that harnesses the laws of quantum mechanics to solve problems too…

Others also viewed

Explore content categories