QuesHub > 对象 > 函数 > 在对 > ASK DETAIL

What is a constructor function in Javascript?

Oliver Wilson | 2023-05-05 12:30:27 | page views:1746
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Ethan Martinez

Works at the International Labour Organization, Lives in Geneva, Switzerland.
The this Keyword. In JavaScript, the thing called this is the object that "owns" the code. The value of this, when used in an object, is the object itself. In a constructor function this does not have a value. ... The value of this will become the new object when a new object is created.
2023-05-05 12:30:27

Isabella Wilson

QuesHub.com delivers expert answers and knowledge to you.
The this Keyword. In JavaScript, the thing called this is the object that "owns" the code. The value of this, when used in an object, is the object itself. In a constructor function this does not have a value. ... The value of this will become the new object when a new object is created.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4