Lately, I've come across code snippets similar to the following:
export interface IUser {
email?: string;
firstName?: string;
lastName?: string;
}
I've found myself wondering, why do the variable names have a question mark at the end? This snippet is from an example involving mongodb and Typescript.
The answer must be out there somewhere, but it seems like my search terms are not quite hitting the mark.