@@ -263,14 +263,16 @@ Some people prefer `typeof(x)`, although the `typeof x` syntax is much more comm
263
263
264
264
There are 8 basic data types in JavaScript.
265
265
266
- - `number` for numbers of any kind: integer or floating-point, integers are limited by <code>±(2<sup>53</sup>-1)</code>.
267
- - `bigint` is for integer numbers of arbitrary length.
268
- - `string` for strings. A string may have zero or more characters, there's no separate single-character type.
269
- - `boolean` for `true`/`false`.
270
- - `null` for unknown values -- a standalone type that has a single value `null`.
271
- - `undefined` for unassigned values -- a standalone type that has a single value `undefined`.
272
- - `object` for more complex data structures.
273
- - `symbol` for unique identifiers.
266
+ - Seven primitive data types:
267
+ - `number` for numbers of any kind: integer or floating-point, integers are limited by <code>±(2<sup>53</sup>-1)</code>.
268
+ - `bigint` for integer numbers of arbitrary length.
269
+ - `string` for strings. A string may have zero or more characters, there's no separate single-character type.
270
+ - `boolean` for `true`/`false`.
271
+ - `null` for unknown values -- a standalone type that has a single value `null`.
272
+ - `undefined` for unassigned values -- a standalone type that has a single value `undefined`.
273
+ - `symbol` for unique identifiers.
274
+ - And one non-primitive data type:
275
+ - `object` for more complex data structures.
274
276
275
277
The `typeof` operator allows us to see which type is stored in a variable.
276
278
0 commit comments