SOURCE

function foo() {
    let t = new Date()
    foo = function() {
        return t
    }
    return foo()
}

console.log(foo())
console.log(foo())
console.log(foo())
console.log(foo())
console 命令行工具 X clear

                    
>
console