Loading Depth Study
Preparing your workspace
Programming languages need a way to turn developer-written code into instructions that a computer can execute.
A compiler translates source code into another form before or as part of execution. An interpreter executes program instructions through a runtime environment. Modern languages may use combinations of compilation, interpretation, bytecode, virtual machines, and just-in-time compilation. The important beginner concept is that the source code you write needs a language implementation or runtime to actually execute.
JavaScript in a browser is executed by the browser's JavaScript engine, while Node.js provides a runtime for running JavaScript outside the browser.
Source Code
↓
Language Implementation / Runtime
↓
Machine Executes InstructionsThe runtime or language implementation makes source code executable.