## 常量
常量的形式如: `NAMES_LIKE_THIS`, 即使用大寫字符, 并用下劃線分隔.
你也可用 `@const` 標記來指明它是一個常量.
但請永遠不要使用 `const` 關鍵詞.
Decision:
對于基本類型的常量, 只需轉換命名.
```
/**
* The number of seconds in a minute.
* @type {number}
*/
goog.example.SECONDS_IN_A_MINUTE = 60;
```
對于非基本類型, 使用 `@const` 標記.
```
/**
* The number of seconds in each of the given units.
* @type {Object.<number>}
* @const
*/
goog.example.SECONDS_TABLE = {
minute: 60,
hour: 60 * 60,
day: 60 * 60 * 24
}
```
這標記告訴編譯器它是常量.
至于關鍵詞 `const`, 因為 IE 不能識別, 所以不要使用.