JS: Primitive Value
The following values are called “Primitive Value”.
- number (includes
- string [see JS: String Overview]
- symbol [see JS: Symbol Tutorial]
They are also called primitive types.
[see JS: Value Types]
Primitive Value Object Wrapper
Most primitive type have corresponding object of object type.
The object is used as primitive value wrapper.
This allows you to call methods on them, such as
You can create number, string, boolean, objects yourself. (but they are rarely needed.)
[see JS: String Constructor]
[see JS: Number Constructor]
[see JS: Boolean Constructor]
JS Types Topic
Ask me question on patreon