posted 19 years ago
Hi again, I'm still confused about variables, so I've knocked up this
HTML page to show you what I don't understand
So we can see XXX is declared in initAll(), so it is local,
but when clicking on the link... "123" is displayed in the alert.
So the function display() is using the XXX variable from the initAll()
function.
I thought this would give an error.
Can you explain why not?
Thanks