var name = "let的name";
const person = {
name: "person的Name",
getName() {
return this.name
}
};
const getName = person.getName;
const print = function (prefix, ...args) {
console.log(prefix.padEnd(20, " ") + ":", ...args)
}
print("getName", getName());