Algorithm thinking: Basic JavaScript: Record Collection

I need help thinking through this algorithm. I have bits of pieces of what I need to do. Below is my code so far, but I need help thinking through the next steps. I really don’t know what to do next…

function updateRecords(id, prop, value) {
 
	var musicRecord;
 
	if(prop != “tracks” & value != “”){
 
			myMusic.artist = “ABBA”
			
			
			
}else if( prop != “tracks” && value != “”){
			code 
			code 
}else if (prop == “tracks” && prop = “”){
		code
		code
}else if (prop == “tracks” && value != “”){
		code
		code
}else if(value == “”){
		code
		code
}else{
	return collection;
}
 
 return collection;
}

Edit: Here is the link to the question.

Would you find a link to this challange and attach it to your question?

I just made the edit. Thanks.

You should not be hard-coding any values to check against artist or any other property.

I’m aware. I was writing my thoughts out. Trying to come up with something.