"use strict";
var C = {};
var arrKey = [], key;
var cntKey = Math.floor(Math.random() * 3) + 2;
for(var i=0; i<cntKey; iPP)
{
key = Math.random();
arrKey.push(key);
C[key] = function(){
console.log(this);
// instanceof this object
// new
console.log("new or call ?");
};
}
console.log("----- ----- ----- ----- -----");
console.log(C);
console.log("----- ----- ----- ----- -----");
console.log("new C[?]");
new C[arrKey[Math.floor(Math.random() * cntKey)]]();
console.log("----- ----- ----- ----- -----");
console.log("call C[?]");
C[arrKey[Math.floor(Math.random() * cntKey)]]();