Jump to content


Question Example 18-2

  • Please log in to reply
No replies to this topic

#1 reinski


    New Member

  • Members
  • Pip
  • 1 posts

Posted 21 July 2012 - 02:05 PM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users