介绍特殊情况

refactorgram

if (aCustomer === "unknown") customerName = "occupant";

image/svg+xml

class UnknownCustomer {
    get name() {return "occupant";}

别名 介绍空对象