We will look at the command line interface for running Deno

Warming up with the REPL interface#

We will now take a closer look at how to use Deno, and to do that we need to fire up the REPL interface!

Open your terminal and execute the following:

You should now see something like this

The REPL interface is a command line tool you can use if you want to run JavaScript scripts without creating a file/environment. Let's start with some easy JavaScript methods, and where better to start than with a "Hello world!"? Type in the code below, and press enter:


As you can see, you get an output of "Hello world!" as well as "undefined".

Let's explore a bit more with REPL before we move on. Try to output the value of 2 to the power of 2 (22):


This page is a preview of Build and deploy a REST API with Deno

Start a new discussion. All notification go to the author.