Source: tags/readonly.js

/**
 * A constant.
 * @readonly
 * @const {number}
 */
const FOO = 1;
/**
 * Options for ordering a delicious slice of pie.
 * @namespace
 */
var pieOptions = {
    /**
     * Plain.
     */
    plain: 'pie',
    /**
     * A la mode.
     * @readonly
     */
    get aLaMode() {
        return this.plain + ' with ice cream';
    }
};
THIS IS A DEMO: All content was generated with examples taken from the JSDoc page.