JS的数据类型

数据类型

  • Undefined

  • Null

  • Boolean

  • String

  • Symbol

  • Number

  • Object

解释

  • The Undefined type has exactly one value, called undefined. Any variable that has not been assigned a value
    has the value undefined.

  • The Null type has exactly one value, called null

  • The Boolean type represents a logical entity having two values, called true and false.

  • The Symbol type is the set of all non-String values that may be used as the key of an Object property (6.1.7). Each possible Symbol value is unique and immutable.

    Each Symbol value immutably holds an associated value called [[Description]] that is either undefined or a String value.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容