In this video, we are going to run Node Command in our local computer to see how Node.js works.
So in order to do that, please open a terminal.
We can open a Windows terminal or any terminal on your local computer.
So basically we will run the command, which is the node.
So if you hit the enter, this will be a starter Node.js application or your command window.
So we can use the commands like console that lock and specifying the information, for example, example.
Delivered.
He didn't.
So as you can see that when we running the console.log method, this is basically an output of the message
into the log information.
So that means we can run the Node.js command with using the node command into the our terminal.
So this is how we can use Node.js command node command into the Node.js examples.
So we can also test this node command into our Visual Studio code environment.
Please open the Visual Studio code and go to the Section 18 and create new lecture for 150.
And now in this lecture, I'm going to create an index JS index that JS file.
So is the same way I'm going to directly develop console.log operation with providing the text message.
So save this index JS file.
So how to execute this index JS file.
We will run this code with the node command for that purpose.
Open the terminal and.
Go to the quiet section and the lecture folder.
Now we are in the same folder into the index case.
Now, since we have installed Node.js application, we can run the node commands.
We can run the node.
And empty character and we can run the index, which is the name of the JavaScript file.
If you hit the enter is you can see that this is return back to message from us.
So that means we have successfully run this index command in the node environment.
So we have executed the index JS file with the non command.
During the course we will test our codes with this way.
Before deploying in code, we will test in our local computer with the node command.