Complete 2024 Web Development Bootcamp
Dr. Angela Yu
Node.Js
What is Node.Js
Technically: Node.js is a cross-platform, open-source JavaScript runtime environment that can run on Windows, Linux, Unix, macOS, and more. It runs on the V8 JavaScript engine and executes JavaScript code outside a web browser. 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). Node.js is a JavaScript runtime environment that allows users to run JavaScript outside the browser. Node.js can speed up processing times and is easy to set up.
Node.js is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts. Node.js is a single-threaded, open-source, cross-platform runtime environment for building fast and scalable server-side and networking applications. It runs on the V8 JavaScript runtime engine, and it uses event-driven, non-blocking I/O architecture, which makes it efficient and suitable for real-time applications.
Phew. That's um... ya.
What this means is that Node.Js allows us to write JavaScript code externally from the web browser. This gives us the ability to use one language (JavaScript), to write the functional code for both the Front-End and Back-End web development. So we can use JavaScript to create the functionality on the client side, and also write the server code to create all of the functionality on the server side.
Another bonus is that programmers can write code, that can be reused as modules. These modules can be incorporated into your code which saves you the time, since you don't have to completely write all of the code. Think of it like Bootstrap. You don't write the Bootstrap classes, you just manipulate them to get the output you need.