I'm trying to familiarize myself with node.js, since it seems to be in use by a lot of Couchbase customers. I heard that Visual Studio code had some pretty good node.js support built in, so I decided to give it a shot.
I already had node and npm installed on my Windows machine. I don't remember why. If you aren't sure if you do, open up Powershell (or cmd) and try:
(If metaphors help you, I think of node as ASP.NET and I think of npm as NuGet)
The next easiest thing you can do is create a file with text editor, say "app.js". Put this into that file:
var msg = "Hello, world!"; console.log(msg);
Woo. Now back at the command line, type:
And guess what it will write out? If you guessed "Hello, world!" then give yourself 10 points.
Matthew D. Groves lives in Central Ohio. He works remotely, loves to code, and is a Microsoft MVP.