Quantcast
Channel: Will this object always re-call the function? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by sabotero for Will this object always re-call the function?

$
0
0

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


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>