Record Collection please help

Can you please explain to me where I’m wrong ? I searched the forum a little bit but I can’t see any difference between my solution and some of the ones I’ve seen on the forum.

Line 35: hasOwnProperty should be called on collection[id]. Also, while not wrong you can simplify your if clauses by using else if.

Adding [id] to collection doesn’t change anything

Just for future reference, if you post your code in a code snippet instead of in an image, it makes it easier for others to copy/paste your code on their own machines and play around with it to find where you went wrong.

If you could do that, I could look at your code and try help you.
var example = This is an example