TS2300
Duplicate identifier 'name'.
Broken Code ❌
Objects don't support multiple properties with the same name:
const objectLiteral = {
name: 'Benny',
name: 'Sofia',
};Fixed Code ✔️
To fix the error we have to remove the duplicated property:
const objectLiteral = {
name: 'Sofia',
};