Basic JavaScript: Record Collection coding challenge still gives error

Edit1: I realized I was not using == but instead was using an assignment operator = and hence was getting an error. So it is solved. No need to read further. Moderators can delete this topic.

Here is my attempt at the solution:

// Only change code below this line
function updateRecords(id, prop, value) {
  if (value!=""){
    if (prop!="tracks" && prop!="artist" ){
      collection[id].album=value;
    } else if (prop="tracks"){
      if ( collection[id].hasOwnProperty("tracks") ) {
        collection[id].tracks.push(value);
      } else {
        collection[id].tracks=[];
        collection[id].tracks.push(value);
      }
    } else if (prop="artist"){
      collection[id].artist=value;
    } else if (prop="album"){
      collection[id].album=value;
    }
  } else {
    if (prop="tracks"){
      delete collection[id].tracks;
    } else if (prop="artist"){
      delete collection[id].artist;
    } else if (prop="album"){
      delete collection[id].album;
    }
  } 
  
  return collection;
}

I am still not able to complete these requirements. Please help:

// running tests
After updateRecords(5439, "artist", "ABBA"), artist should be "ABBA"
After updateRecords(2548, "artist", ""), artist should not be set
// tests completed