javascript - What type of structure is this? -


i looking @ javascript code , attempting find out type of structure following is:

new d["default"](f,l) 

it seems constructor, has array. d array? if so, wouldn't have function call arguments afterwards? thank you.

edit: changed c d clarification.

imagine:

var d = {   "default": function(a, b) {     // initialize new object   } }; 

then

new d["default"](f, l) 

just accesses function , calls constructor. it's like

var constructor = d["default"]; new constructor(f, l); 

the term "type of structure" "object". it's plain ordinary object property reference semantics. bind pretty tightly, object property reference evaluated before else. (admittedly, use new can little weird, in case it's not.)