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