编辑代码
TypeScript代码
4.9.3
运行
// 有名函数
function
add
(
x, y
)
{
return
x + y; }
// 匿名函数
let
myAdd =
function
(
x, y
)
{
return
x + y; };