01
No matter how you create an {}
object, it inherits from the Object
class
const dude = {} dude.name = 37 dude
Here you can see what methods will be applied to any instance any created object, for instance
- toStirng()
- valueOf()
- ... etc



02
This also the case for ALL variables
[]
'string'
numbers
ints/floats
const myBrothers = ['Ben','Sam'] myBrothers
Notice for the array inheriting Array(0)
seen in it's __proto__
,
now [[Prototype]]
,
03
inside of Array you will find Object
within
Array(0)
's __proto__
or [[Prototype]]
03
inside of Array you will find Object
within
Array(0)
's __proto__
or [[Prototype]]
04
Each Variable type also inherits from the Object
,
making Object
the true parent besides window in javascript
(my interpertaion not sure if thats' correct - ask chatgpt this question)
This also the case for ALL variables
└── Object ├── Array(0) ├── String └── Number
Array(0) []
String
Number
ints/floats