Note: This article is published on 12/06/2024.
This series of articles is absolutely a AI product or byproduct. This article could be a new style of my articles: using AI result associated with my own understanding, for example, associated with StackBlitz | Instant Dev Environments, to make the article eazy to write and more readable.
A - Introduction
The content of this article:
- A - Introduction
- B - What is Node JS --- from AI
- C - Testing Environment --- from stackblitz.com
- D - How to Run Node.js locally
B - What is Node JS --- from AI
The following is a google result, actually, an AI output built in with Google. It is acurate, briefly, summarized. In fact, we do not have any reason to not use that as a searching result.
what is node js - Google Search
C - Testing Environment --- from stackblitz.com
Go to StackBlitz | Instant Dev Environments, in fact, https://stackblitz.com/
Note: If you do not register, you may need to register first. However, if you do not write your own, just as a reader, you can view other's result and run or test it.
Click New Project to create a new one:
Click Node js to create a Node JS project:
A default page, index.js, is opened. Type the command: Node index.js in the terminal to run the mini project:
node index.js
We got the result:
Hello Node.js v18.20.3!
D - How to Run Node.js locally
Following the AI result from Google:how to run node.js locally - Google Search
- Step 1: Install Node.js
- Step 2: Create a JavaScript file
- Step 3: Run the file using Node.js
Note: you'd better to run the google search in Chrome, otherwise, for example in Microsoft Edge, you might not get the AI result, even you run google search there. In case you cannot get the AI result, I copy it below:
References: