Skip to content
Advertisement

Tag: primitive-types

How to visualize JavaScript wrapper objects?

Lately I read that for every primitive data type, a wrapper object is created. It is this wrapper object what makes it possible to use methods with that data, and that makes sense. I also read that functions are objects. I found out that I can visualize the function-as-an-object through console.dir(). However, when I apply console.dir() to a primitive data

Advertisement