i was Implementing invert() the way it was guided
invert(object){
let invertedObject = {};
for(let key in object){
const originalValue = object[key];
invertedObject = {originalValue: key}
}
return invertedObject
}
there was a failure at end of it for invertedObject = {originalValue: key}; , i checked guidance video and it was exactly the same but hers passed anyways i found the right way to do it and it passed i just want to know why mine didn’t pass because i don’t wanna just find an answer and move on.