A destructured variable can receive a default when its property is missing or undefined. Existing property values are kept.
const settings = { theme: "dark" };
const { language = "en" } = settings;Destructure role from account with the default student. Do not add a property to the object. Display Role: student.