İngilizce

The Constructor Method
The constructor method is a special method:

It has to have the exact name "constructor"
It is executed automatically when a new object is created
It is used to initialize object properties
If you do not define a constructor method, JavaScript will add an empty constructor method.

Türkçe

Yapıcı Yöntem
Yapıcı yöntem özel bir yöntemdir:

Tam adı "yapıcı" olmalıdır
Yeni bir nesne oluşturulduğunda otomatik olarak yürütülür
Nesnenin özelliklerini başlatmak için kullanılır
Bir yapıcı yöntem tanımlamazsanız, JavaScript boş bir yapıcı yöntem ekler.

(5000 karakter kaldı)
İngilizce
Türkçe

Son çeviriler

devamını göster›
ADS - REKLAMLAR