Microsoft Visual Studio 2013

Click on 'New Project'.

Microsoft Visual Studio 2013

New Project

Select ASP.NET Empty Web Application, give it an awesome name (my awesome name here is, "WebApplication2"), and click 'OK'.

WebApplication2 - Microsoft Visual Studio

Out of the box, an empty web project gives you just about nothing...

WebApplication2 - Microsoft Visual Studio

Add an HTML page

We'll need the HTML page just to load up the JavaScript we'd like to play with. Right click on the project, and add a new HTML page.

Create index.html

You could actually name it anything you like, but if you use "index.html", the browser will just automagically know to bring up that initial page.

Create index.html

Next add a new JavaScript file

Specify Name for new JavaScript file

Name it anything you like.

Specify Name for new JavaScript file

Now we have both HTML and JavaScript files... We're almost ready to code!

Now we have both HTML and JavaScript files... We're almost ready to code!

Template JavaScript to get going: Self-executing function

This is just the JavaScript code I start with. Ignoring the code on lines 2-5, this structure sets up your code to run automatically when it is loaded into the browser.

Template JavaScript to get going:  Self-executing function

Loading our JavaScript

To get our Javascript loaded into the browser, we need to reference it in the HTML page. Since Visual Studio has both our HTML and our JavaScript file in the same directory, there is no need to specify a path... Just name the file, and you're ready to hit F5 to see your JavaScript in action!

Loading our JavaScript

Run your project

Run your project

Feel the power!

There it is... Our 'Hello World' alert box!

Changing it up... Use console.log

Try getting rid of the alert box, and add a console.log statement instead. Make sure to open up the console in your browser so you can see the log statements!

Changing it up... Use console.log

Chrome's console

Here's what you will see... I personally use Chrome most of the time, but you can do this in any modern browser.

Chrome's console