class Factory{ constructor(arrayOfAttributes){ let length=arrayOfAttributes.length this.product=this.concreteCardCreation(arrayOfAttributes,length); } attributesRequiredFun(arrayOfAttributes,length){ console.log("arr attr") console.log(arrayOfAttributes) let attributesRequiredTmp=[]; let nullArray=[0,0,0,0,0]; for(let i=0;i<5;i++){ let find=false; for (let j=0;j{ console.log("tab index") console.log(e); }); return attributesRequiredTmp; } concreteCardCreation(arrayOfAttributes, length){ let tabOfAllCards=[]; let attributes=this.attributesRequiredFun(arrayOfAttributes,length); let nbAttributes=length if(nbAttributes==3){ for (let c=0; c