How many data types are there in JS, and what are they?

后端 未结 5 2073
难免孤独
难免孤独 2021-01-02 16:48

I started reading a book, Javascript for Kids. In it the author states that there are three data types:

  • numbers
  • strings
  • booleans
5条回答
  •  误落风尘
    2021-01-02 17:16

    The latest ECMAScript standard defines eight data types, namely: Seven data types that are primitives: Boolean, Null, Undefined, Number, BigInt, String, Symbol and Object For more information, refer: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#BigInt_type

提交回复
热议问题