Aklımda Kalası Kelimeler

* давайте работать вместе
* Zarf ve Mazruf, Zerafet(xHoyratlık) ile aynı kökten(za-ra-fe) gelir
* Bedesten
* Suç subuta ermiştir - Suç sabit olmuştur

5 Mayıs 2015 Salı

JSDoc ile javascript kodlarınızın belgelendirilmesi

/**
* My js app
* @module app
*/

/** 
* Namespace for MYAPP classes and functions.
* @namespace MYAPP
*/
var MYAPP = MYAPP || {};

/**
* A maths utility
* @class
*/
MYAPP.math_stuff = {

    /**
    * Sums 2 numbers
    *
    * @property sum
    * @param {Number} a First number
    * @param {Number} b Second number
    * @return {Number} Sum of the inputs
    */
    sum: function (a, b) {
        return a + b;
    },

 /**
 * Yaş bilgisini tutar
 * @property yas
 */
 yas : 12,
    /**
    * Multiplies 2 numbers
    *
    * @property multi
    * @param {Number} a First number
    * @param {Number} b Second number
    * @return {Number} The inputs multiplied
    */
    multi: function (a, b) {
        return a * b;
    }
};

/**
* My js app
* @module app
*/
/** 
* Namespace for MYAPP classes and functions.
* @namespace HUMAN_RESOURCE
*/
var HUMAN_RESOURCE = HUMAN_RESOURCE || {};

/**
* @class JustClass
* @constructor
*/
HUMAN_RESOURCE.JustClass = function(){ }

/**
* Constructs Person objects
* @class Person
* @constructor
* @param {String} First name
* @param {String} Last name
*/
HUMAN_RESOURCE.Person = function (first, last) { 
    /**
    * @property f_createPerson
 * @param {Person} [_person] açıklama
    * @return {Person} Person type object
    */
 this.f_createPerson = function(_person, _person2){ return new Person() }
};

/**
* Return Person's full name
* @alias getName
* @memberof! HUMAN_RESOURCE.Person#
* @return {String} First name + last name
*/
HUMAN_RESOURCE.Person.prototype.getName = function () {
    return this.first_name + ' ' + this.last_name;
};


Hiç yorum yok: