张慧雯佩戴ASTER MA高级珠宝亮相北京国际电影节

百度 刘炳江说,大气十条收官以后,环保部正在抓紧研究起草蓝天保卫战的三年作战计划,确立具体的战役,一个战役接着一个战役打。

A symbol is a data type that represents unique, unforgeable identifiers. They are sometimes called atoms.

Because a symbol is unique and unforgeable, you can only read a property value associated with a symbol if you have a reference to the original identifier.

In JavaScript, symbol is one of the primitive types and can be created using the Symbol() factory method that returns a different symbol each time. They can be used as keys for objects which can never accidentally collide with other properties.

JavaScript also defines two other categories of symbols: well-known symbols and registered symbols. Read the Symbol reference for more information.

See also