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