How to add Comments in JavaScript in simple steps?
function doSomething() {
/*
This code by Subramanyam Inkollu
*/
var i = 0; // counter to be used later;
}
Comments in JavaScript can be between /* */ markings (useful for multiple line comments) or after // markings (for single lines only).