I'm currently learning javascript and I came across this rather odd behavior when setting a property multiple times. For example:
var duck = {feet: 1, feet: 2}
On running
show(duck)
I get
{feet:2}
Is there some weird javascript reason for this behavior? Why is no error thrown?