If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

What's the point with a FORUM like this when people ask you to read. I do that to! Only that none of the books/tutorials gave an answer to my question. I guess when you have a lot of experience it's easy to figure out anything!!
Here is the answer i was looking for from dynamicdrive.com
/*
Virtually none in this case except that some browsers might not like the second named constructor the way it's written there. In fact they're both "named" (via being assigned to a variable name). The first one is PersonT1, the second is named PersonT2. The PersonT2 syntax is redundant though. It could be simply:
function PersonT2(name, age, gender){
this.name = name;
this.age = age;
this.gender = gender;
this.getGender = function(){
return this.gender;
};
}
And that's the usual syntax for declaring a constructor function.

What's the point with a FORUM like this when people ask you to read...

dear friend, let me inform you that english is not my native language and if you would like to try walking in my shoes just ask me your question in russian and then read my answer in russian. everybody comes here with his own problems to solve.

i didn't ask you to read anything, it was just a hint of where you can find the information you were looking for. the answer from another resource is not full, because your question was about the difference between named and anonymous functions (Named or unnamed constructor, What's the difference?). In JavaScript, the constructor is a normal function which is used as an operand of the new operator.