New oparöter kullanımı JavaScript

Rooster

only business
Legend Member
Joined
Aug 10, 2019
Topics
727
Messages
3,205
Solutions
314
Reaction score
4,997
Location
Milano
RC Point
0
Ok işlevleri Nesneleri oluşturmak için kullanılamaz ve kullanıldıklarında hata atarlar.


Code:
  var Foo = () => {};
  var foo = new Foo(); // TypeError: Foo is not a constructor
 
Top