Controlling the built-in REPL


show more Controlling the built-in REPL provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013) show less
please wait ...

Controlling the built-in REPL

Node comes complete with a Read Eval Print Loop, otherwise known as a REPL. This allows you to test JavaScript code one line at a time, then immediately see the results. In this video, we'll fire up Node's REPL and do some interactive coding. Let's go to terminal. To start Node's REPL, all you need to do is type node and press Return. Now let's evaluate some of the globals that are already available in the node environment before we even set any variables. So first, let's type global.

When you type global, it's going to evaluate that global object and show you everything that's a part of it. It prints it out in some nice colors and formatting so you can follow along. One of the global's is require. So if I type require, it's going to evaluate the required global. This shows me that require is a function and it has several properties and methods attached to it. Now let's start settings and variables. And one thing to keep in mind as we're using the REPL. Eve...

Controlling the built-in REPL
Video duration: 4m 18s 3h 17m Intermediate

Viewers:

Controlling the built-in REPL provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013)

Subject:
Developer
Software:
JavaScript Node.js
Author:
please wait ...