I can't find where the error occurred. at lodash project

image
I did what the solution video said, but I got an error. I don’t know where the error came from.
Please tell me where the error occurred.TTTT

Hi,
there is a problem in this line:
invertedObject = { originalValue : key}
With each key within the object passed to the method, the variable originalValue will be overwritten with an object with a single key-value-pair.
The name of the single key will always be ‘originalValue’.
The specification of the key has to take place left of the equal sign in order to add it. On the right side there should only be the new value.

image
I solved the error! Your advice was a great help. Thank you so much.

1 Like