結果 : declaring a function in typescript