Mister Positive Mister Positive - 3 months ago 22
jQuery Question

What does /// <reference path="jquery-1.8.3.js" /> actually do?

I see this line of code in some of the JavaScript Files I work with, at the very top of the file ( first line ), but its not clear to me exactly what this does. May be the bone headed question of the year, but hey, you don't know what you don't know. To be more specific, I am using Visual Studio 2015 for development.

Google wasn't much help on this.

/// <reference path="jquery-1.8.3.js" />


This is most likely for Visual Studio's JavaScript intellisense. Mads Kristensen has a nice article you can read to learn more about the history of this and how to use it correctly.