我无法将函数返回值分配给变量。为什么当我将它记录到控制台时,我得到的是返回的函数而不是最终的产品?
time = ->
today = new Date()
minutes = today.getMinutes()
if minutes < 10 then minutes = "0#{minutes}"
hours = today.getHours()
if hours < 10 then hours = "0#{hours}"
"#{hours}:#{minutes}"
console.log time