SOURCE

func()

function func() {
    console.log(1)
}

function func(a, b) {
    let f = function f() {
        return a + b
    }
    return f
}

console.log(func(1, 2)())


function eat(food, name) {
    this.food = food
    this.call = call
    console.lgo('调用了eat')
}
function weather(food, name, what) {
    console.log("今天的天气是" + what);
    console.log("我喜欢吃" + food);
    console.log("我是" + name)
}
weather.bind(eat, "肉", "狗", "大雨")()

function show(sex) {
    console.log("普通函数" + sex);
}
var person = {
    name: "aa",
    age: 14
};
show.call(person, "男")
console 命令行工具 X clear

                    
>
console