JS: Primitive Value Object Wrapper
What's Primitive Value?
[see JS: Primitive Value]
String or number are not objects, why do they have methods?
When using a method of a number (or string), such as
, the primitive value is automatically converted to object temporarily.
You can create number or string objects yourself. (but they are rarely needed.)
[see JS: String Constructor]
[see JS: Number Constructor]
[see JS: Boolean Constructor]
[see JS: Data Types]
Ask me question on patreon