주석 처리 방법

1. 함수 설명

/**
 *  function () : explain about function. ex) This is the function that input name and age, returns information
 * @param {string} name
 * @param {number} age
 * @returns name+age
 */

function hello(name,age){
    return name + age;
}

hello('kim',22);

2. 버전 기입

/**
 * @version 1.3.0
 * @see https://google.com 
 */

function hello(name,age){
    return name + age;
}

hello('kim',22);

3. readonly 명시

/**
 * @readonly
 * @const {number}
 */

function hello(name,age){
    return name + age;
}

hello('kim',22);

4. Deprecated

/**
 * @deprecated this function is not used now
 */

function hello(name,age){
    return name + age;
}

hello('kim',22);