MCPcopy Create free account
hub / github.com/SincereCSL/Playgrounds / add5

Function add5

TypeScript/StudyTypeScript/src/function.ts:22–24  ·  view source on GitHub ↗
(x:number,z: number,y?: number)

Source from the content-addressed store, hash-verified

20
21/// 定义可选参数函数
22 function add5(x:number,z: number,y?: number){// 可选参数必须位于必须选参数之后
23 return y? x+y : x;
24 }
25 add5(1,2)
26
27function add6(x: number,y = 0,z: number,q =1){

Callers 1

function.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected