They are equivalent. In both the getElementByIdmethod
is called only one time (when you create the object) and then the stored value in the variable is returned at all times when you do Objek.node
↧
Answer by sabotero for Will this object always re-call the function?
↧