

You should see "Hello World" output to the terminal and then Node.js returns. you'll see IntelliSense showing all of the string functions available on msg.Īfter experimenting with IntelliSense, revert any extra changes from the source code example above and save the file ( kb()). When editing JavaScript files, VS Code will automatically provide you with IntelliSense for the DOM.Īlso notice that VS Code knows that msg is a string based on the initialization to 'hello world'. IntelliSense on the console object was automatically presented to you. js file extension, VS Code interprets this file as JavaScript and will evaluate the contents with the JavaScript language service.Ĭreate a simple string variable in app.js and send the contents of the string to the console: var msg = 'hello world'

The period '.' refers to the current folder, therefore VS Code will start and open the Hello folder.įrom the File Explorer tool bar, press the New File button:īy using the. Tip: You can open files or folders directly from the command line. Let's get started by creating the simplest Node.js application, "Hello World".Ĭreate an empty folder called "Hello", navigate into and open VS Code: mkdir Hello

Tip: To test that you've got Node.js correctly installed on your computer, type node -help from a terminal and you should see the usage documentation. See Installing Node.js via package manager to find the Node.js package and installation instructions tailored to your version of Linux. Linux: There are specific Node.js packages available for the various flavors of Linux. You'll need to open a new terminal (command prompt) for the node and npm command line tools to be on your PATH. The Node Package Manager is included in the Node.js distribution.

To get started in this walkthrough, install Node.js for your platform. However, to run a Node.js application, you will need to install the Node.js runtime on your machine. VS Code has support for the JavaScript and TypeScript languages out-of-the-box as well as Node.js debugging. Node.js is the runtime and NPM is the Package Manager for Node.js modules. Node.js is a platform for building fast and scalable server applications using JavaScript. Adding a jsconfig.json Configuration File.
