1
我無法將函數返回值分配給變量。當我登錄到控制檯時,爲什麼會返回函數而不是最終產品?函數返回值到變量
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