For the sake of an example, is this statement
window.Number.constructor.prototype.constructor();
read like a path?
C:\Users\Vista\Documents\Work\text.txt
From left to right
window:\Number\constructor\prototype\constructor()
where window
is the root object, Number
is an object inside window
, constructor
is an object inside Number
, prototype
is an object inside constructor
and constructor()
is an object inside prototype
?
Just like in this statement
window.document.myForm.textBox.value;
which equals
[object].[object].[object].[object].1
where the objects aren't actually acting on each other?
OR
Are the actual values read from right to left, where each object is acting on the object directly to the left of it?
Where
window.Number.constructor.prototype.constructor();
equals
[object] . function Number() { [native code] } . function Function() { [native code] } . function prototype() { [native code] } . function anonymous() { }
as
window.Number(9.256).toFixed(2);
equals
[object].(9.256).(9.26);
where toFixed
is a property that's using the return value of the Number
object and the result is stored as a property of the window
object?
As you can probably tell, I'm kinda tangled up over here :) Just having difficulty wrapping my head around the dot concept. I'm sure a background in Java would help, but unfortunately, I don't have one (yet).