Which programming language is this?
interface User {
id: number;
email?: string;
}
Answer: TypeScript
interface with an optional ? member is TypeScript's structural typing.interface User {
id: number;
email?: string;
}
Answer: TypeScript
interface with an optional ? member is TypeScript's structural typing.