Code no work it sould wy it no work?

Tell us what’s happening:

should solve
SyntaxError: unknown: Deleting local variable in strict mode (35:7)
it no do wy?
Your code so far

// Setup
var collection = {
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'

// Only change code below this line
prop == null;
function updateRecords(object, id, prop, value) {
if( prop in tracks == false || valeu != ""){
return prop = value;
else if (prop in tracks == true || tracks == false){
return "" + value;
}else if (prop in tracks == true || value != ""){
return tracks + value;

else if (value == ""){
return delete prop;

return object;


updateRecords(collection, 5439, 'artist', 'ABBA');

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36.

Challenge: Record Collection

Link to the challenge:

what should this do?

what’s prop, what’s tracks?

what’s valeu

what do you need to return?
why are you overwriting prop

error strick mode

overwrotting it should fix
it no do

you are trying to delete one of the function parameters, which is the wrong thing to delete

if you fix that, you have still all the other things to fix