JS: Value Types
|type name||sample value||explanation|
[see JS: undefined]
[see JS: null]
[see JS: true, false]
|† string||[see JS: String Object]|
|† number||Includes special value |
[see JS: NaN] [see JS: Infinity]
||Always-unique value primarily for use as property keys. [see JS: Symbol Tutorial]|
|object||The “object” type is a collection of key/value pairs. Array, function, date, regex, etc are all objects.|
[see JS: Object Type]
† A value of these types are called primitive values.
[see JS: Primitive Value]
Find the Type of a Value
JS: “typeof” Operator
Liket it? I spend 2 years writing this tutorial. Help me spread it. Tell your friends. Or, Put $5 at patreon.
If you have a question, put $5 at patreon and message me.