function 函数名(输入变量:输入变量类型):返回值 { 函数过程; return 返回值; }
如
function dudu(carName:string){ console.log(carName); }