Question Example 18-2
First of all: the program works fine. But I don’t understand the statement
request = new ajaxRequest()
because in the function ajaxRequest() an object is already generated with the operator “new”. So we have two new?
I then changed the statement to
request = ajaxRequest()
and the program still works fine. Well, I would expect that and I don’t understand that the program worked with two “new” operators. Can somebody explain this behavior to me?
Thank you.
PS Sorry for my English: I’m not a native speaker.












