Even some primitive values when called with the ‘new’ keyword will still return an object.
Math, RegExp, Date, function are all objects,
with the new keyword string, number, Boolean will also return an object.
what are primitive values ?
Let name = ‘John Doe’
Primitive data types
Are data that has a primitive value.
What are objects
const pie = 3.14
Objects are variables that can contain more than one value, basically a collection of named values
Read More on howtothese.xyz
Top comments (0)