Colección de discotecas

 / Configuración
const recordCollection = {
  2548: {
    albumTitle: 'Slippery When Wet',
    artist: 'Bon Jovi',
    tracks: ['Let It Rock', 'You Give Love a Bad Name']
  },
  2468: {
    albumTitle: '1999',
    artist: 'Prince',
    tracks: ['1999', 'Little Red Corvette']
  },
  1245: {
    artist: 'Robert Palmer',
    tracks: []
  },
  5439: {
    albumTitle: 'ABBA Gold'
  }
};

// Cambia solo el código debajo de esta línea
function updateRecords(records, id, prop, value) {

  const record = records[id];

if (value === "") {
  delete record[prop];

} else if (prop !== "tracks") {
  record[prop] = value;

}else {
  record["tracks"] = record["tracks"] || [];

  record["tracks"].push(value);
}
  
  return records;
}

Describo este tema de suma importancia, Alguien que tenga una modestia y pueda yo entenderle mejor, lo pase´ con suerte de curioso pero me quedo´, el sin sabor´. Atento.‘’’

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').