This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer
This blog post is first of a series:
- What are wrapper objects for primitive values?
- Why you shouldn’t change built-in prototypes [coming soon]
- How do primitive values get their properties? [coming soon]
Each of the primitive types boolean
, number
, bigint
, string
and symbol
has an associated wrapper class (Boolean
, Number
, BigInt
, String
, Symbol
). In this blog post, we examine what these classes are good for.
This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer

Dr. Axel Rauschmayer | Sciencx (2022-02-20T00:00:00+00:00) What are wrapper objects for primitive values?. Retrieved from https://www.scien.cx/2022/02/20/what-are-wrapper-objects-for-primitive-values/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.