in my understanding:
1. DOM element is equivalent to JS object. correct?
2. there's only one JS object in this case, the button with id "element". correct?
4. where in the code (what line) that shows DOM element also have reference to JS object?
thanks for the reply.
I need to confirm, obj itself is not an object right? just storing a reference to an object (which in this case is the button)
as for question number 4, I read a tutorial that the code has a circular reference where DOM element (I assume the article was referring to button element) also refers to obj. This is what confuses me. So I need to know what line of code showing reference to obj.
I quote from the article: