You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: en/server-side/nodejs.md
+5-6
Original file line number
Diff line number
Diff line change
@@ -26,15 +26,14 @@ This should print the version number of Node.js like this:
26
26
```bash
27
27
v20.7.0
28
28
```
29
-
## Running the Node.js REPL
29
+
## Node.js REPL
30
30
31
-
REPL stands for Read Evaluate Print Loop, and allows you to run code from the terminal.
32
-
Type into your terminal this command:
31
+
REPL is a command line interface that stands for Read Evaluate Print Loop, which enables you to run code from the terminal. To get started, type the following command into your terminal:
33
32
34
33
```bash
35
34
node
36
35
```
37
-
In this prompt, you can run code, like this:
36
+
Once you enter this prompt, you can run code, like this:
38
37
39
38
```js
40
39
>console.log("Hello World")
@@ -65,13 +64,13 @@ Hello World!
65
64
66
65
Express is a popular web framework for Node.js. It provides a simple and elegant API for building web applications. Let's use Express to create a simple web server that will respond to HTTP requests with a "Hello World!" message.
67
66
68
-
But before we install Express, we must first run this in order to set up npm, javascript's package manager:
67
+
First, we need to initialize npm by running npm init.
0 commit comments