I’m on the Record Collection (Basic Javascript) checkpoint, and I have passed each test except:
“After updateRecords(2548, "artist", "") , artist should not be set”
“After updateRecords(2548, "tracks", "") , tracks should not be set”
What exactly does it want me to do? Does it want me to simply not execute any functions if value = " " OR does it want me to clear any existing code from “Artist” or “Track”? I have managed to do both, and it worked fine in my Codepen, but I’m still not passing the test…
Those errors are related to the comparison between the expected result and the result obtained running your code^^
More specifically after running the function updateRecords with those arguments ( (2548, "artist", ""), (2548, "tracks", "") ) the field artist (in the first case) and tracks (in the second case) shoudn’t be set ( the argument passed to the related field is an empty string).
If you want some help with the code you can post what you’ve done so far^^
Good luck!
P.S:
I found the specific hint in the challenge:
If value is empty ( "" ), delete the given prop property from the album.