A runtime environment is where your program will be executed. JavaScript code may be executed in one of two runtime environments:
In each of these environments, different data values and functions are available, via global objects and these differences help distinguish front-end applications from back-end applications.
tip: process is an object containing data relating to the JavaScript file being executed. process.env is an object containing environment variables such as process.env.PWD which contains the current working directory (and stands for “Print Working Directory”).