Person object with merged interface properties:
{
name: 'John',
age: 30,
address: '123 Main St',
email: '[email protected]'
}
Accessing individual properties:
Name: John
Age: 30
Address: 123 Main St
Email: [email protected]
In TypeScript, the merged interface would look like:
interface Person {
name: string;
age: number;
address: string;
email: string;
}