
Īdd a simple string variable ("Hello World"), then send the contents of the string to your console by entering this in your "app.js" file: var msg = 'Hello World'

Open the directory and your app.js file in VS Code using the command: code.

Open your command line and create a new directory: mkdir HelloNode, then enter the directory: cd HelloNodeĬreate a JavaScript file named "app.js" with a variable named "msg" inside: echo var msg > app.js If you have not yet installed Visual Studio Code, return to the prerequisite section above and follow the installation steps linked for Windows or WSL. For more information, see Should I install Node.js on Windows or Windows Subsystem for Linux Try NodeJS with Visual Studio Code

If you are a beginner, trying Node.js for the first time, we recommend installing directly on Windows.

Node.js is built on top of the Chrome V8 JavaScript engine, which makes it fast and efficient. It allows developers to build server-side applications with JavaScript and run them on a variety of platforms, including Windows, macOS, and Linux. Node.js is an open-source, cross-platform JavaScript runtime environment that executes JavaScript code outside of a web browser.
