Search⌘ K

JavaScript on the Server

Explore how JavaScript runs on the server using Node.js, which compiles code to machine-level instructions and handles multiple tasks with non-blocking I/O. Understand its strengths in handling parallel requests and the benefits for full-stack development careers.

Let’s first focus on the server-side programming.

Server-side development focuses on writing code that runs on the server of the service provider.

Node.js and Server-Side Development

JavaScript is not just a client-side language anymore.

Node.js makes it possible to run JavaScript on the server. Node.js is built on the foundations of the execution engine of Google Chrome, called V8. The V8 engine is fast like a Formula One car. The V8 compiler turns JavaScript to machine code, which means that on the server, we are not dealing with interpreted code anymore.

Interpreted code runs on a virtual machine, translating the sets of instructions written by a developer to executable commands. Interpreted languages are typically safer but slower than ...