Nullierbares Parameter -Typscript
const sayHello = (name: string, age?: Number): string => {
if(age) return `Hello ${name}! You are ${age} years old.`;
else return `Hello ${name}! How old are you?`;
}
TheJYT