![](https://cos-cdn.shuashuati.com/pipixue-web/2020-1231-2005-12/ti_inject-812ce.png)
以下JavaScript的函数写法,语法正确的是()
A.
function getMax(a,b){ if(a>b) return a; else return b; }
B.
function getMax(int a,int b){ if(a>b) return a; else return b; }
C.
function getMax(var a,var b){ if(a>b) return a; else return b; }
D.
int function getMax(int a,int b){ if(a>b) return a; else return b; }