In Array.sort function

array.sort((a,b)=>(a-b)) what value is given by a and b in function how we get to know