@property ve @param için iki ayrı satır yazmak zorunda kalmamak için, örnekte olduğu gibi, yapıcıda parametreler ve özellikler varsa aynı şekilde adlandırılmış.JSDoc Toolkit - Nasıl aynı satırda @param ve @property belirtilir
/**
* Class for representing a point in 2D space.
* @property {number} x The x coordinate of this point.
* @property {number} y The y coordinate of this point.
* @constructor
* @param {number} x The x coordinate of this point.
* @param {number} y The y coordinate of this point.
* @return {Point} A new Point
*/
Point = function (x, y)
{
this.x = x;
this.y = y;
}
Benim önerim, jsdoc özelliklerini sahip olduğunuzdan yalnızca yapıcıdan bildirmenizdir (yalnızca daha sonra atanacak olsa bile) Bir sınıftaki rasgele işlevlerden bunları oluşturmaktan kaçının. –