The in operator checks whether an object has a named property and produces a boolean.
const user = { name: "Ava" };
console.log("name" in user); // outputs truePredict the output
A contact card checks whether a phone field is available. Predict the result of the property check.
const contact = { email: "[email protected]" };
console.log("Has phone:", "phone" in contact);