In this video.
Let's talk about Node.js repo.
What is it and what is the uses?
The four meaning of repo stands for R for read, e for evaluates, p for print and L for loop.
So what does it mean?
Well, the Node.js repo is a tool that allows you to execute JavaScript code in repo environment.
And this too can be used to test code snippets, evaluate expressions and run programs.
So the code that we write, we can run the same code in the repo of Node.js.
So to use the Node.js repo, you first need to install Node.js.
And that is what we have done, right?
So as soon as you install Node.js, we have the repo so the repo can be represented as a console in
the browser.
So over there tool, we have the repo, right?
If you type in maybe a code snippet, we can execute, we can test it.
So the same way we did when we're using JavaScript in the browser, we are going to do the same thing
using the repo of Node.js.
Well, so to be able to use the repo first, you need to install Node.js.
And that is what we have done in the previous video.
And after that, we can launch the node repo by running a simple command called node.
So the repo can be represented as a console in the browser, in the browser console.
We can execute any code we can test.
We can do whatever you want.
So the same way we can write any valid JavaScript and run it inside Node.js, environment or repo.
All right, so let's see how we can use repo.
And once the repo is running, we can execute any JavaScript code.
The results of your code execution.
We printed to the console and we can use the app and hierarchy to browse through your history and record
previous commands and to exit the repo or what we need is to press control C twice and that is it.
Okay, so let's see how we're going to use it.
So back to my terminal here.
All we need to do is execute this command called Node and then hit enter and here we go.
It will see that the first line it says, Welcome to Chase version 18 .7.0 at the time of recording
this video.
This is a version of my Node.js.
The next line is that type don't help for more information.
The next line, we see this blinking icon.
It means that we are in the repo right now.
So here we can execute any command, for example, two plus two, which is four.
And I can also declare a variable, say, eight, which is equal to ten.
When I search for a indeed it is ten.
I can also declare a variable called B and C 20.
Now when I look for B, indeed it is 20.
I can declare a variable, say result, and assign a plus b.
When I make use of result in my repo.
Indeed it is 30, so you can see how we can mix the repo.
The next video, let's get started with Node.js modules.