I've been using JavaScript for a short period of time, and have found myself interested as to whether or not there is any correlation between the .
syntax used for referencing children of an object, and functions such as console.log
.
And was interested whether functions such as this, were in a way objects behind the scenes, with log
being a method inside of a console object, and if I am just referencing the child of an object.
Or another example, the .length
method, is this just a hidden property of the object or array you are referencing.
Apologies if this is poorly worded, I was struggling to write down my train of thought, and I would be incredible appreciative if anyone could let me know if this is how methods such as these are structured, or if I am thinking of them in completely the wrong way.