JavaScript Basics combing - Data Types

JavaScript data type of public six kinds, ES6 has added a seventh value Symbol type.

  • Value (number)
  • String (string)
  • Boolean values ​​(boolean)
  • undefined
  • null
  • Object (object)

Primitive types: the basic data types, can not be subdivided

  • Value (number)
  • String (string)
  • Boolean values ​​(boolean)

Basic data types:

  • Value (number)
  • String (string)
  • Boolean values ​​(boolean)
  • undefined
  • null

Synthetic type:

  • Object (object)

Object:

  • Narrow object (object)
  • Array (array)
  • Function (function)

Symbol:

ES6 introduces a new type of raw data ` Symbol`, represents a unique value. May keep the name of each property is unique

Guess you like

Origin www.cnblogs.com/songsongblue/p/11605392.html
Recommended