2023-01-28 【TypeScript】関数宣言と巻き上げ 関数宣言より前に関数を使用することができる。 (同一スコープの場合) calc(2, 5) function calc(a: number, b: number): number{ return a + b; }