SOURCE

var pet = function(name) {
    var getName = function() {
        return name;
    }
    console.log(111);
    return getName();
}
myPet = pet('jimmy');
console 命令行工具 X clear

                    
>
console