Help! Record Collection :(

I do not understand the reason why my functions does not work. I write conditions from the last one to the first one


function updateRecords(id, prop, value) {
var a=["collection"]["id"]["prop"]["value"];
var b= ["collection"]["id"]["prop"]["tracks"];
var c=  ["collection"]["id"]["prop"]     ;
       if (a==""){
         delete prop;
       }else if(b!=="")
       tracks.push(value);
       
  return collection;
}

2 posts were merged into an existing topic: Record Collection: I do not know what is the reason why it does not work to solve the problem. It is Record Collection Problem

Please do not create duplicate topics for the same challenge/project question(s). This duplicate topic has been unlisted.

Thank you.

1 Like