What is the correct way of code comments in JavaScript
问题 What is the correct way of code comments in Javascript - is the same syntax as in Java? And which tools actually would take advantage of these comments: /* * Add an element to the group * @param {Object} overlayElement * @param {Object} [element2] optional element */ I found new Resharper 6 (I write JS in VisualStudio 2010) offers the same comments as in C#, but only within the functions body, something like /// <param name="overlayElement"></param> . The JS code comments are not highlighted