new to Javascript.
Was playing around with a controller for a calculator and came across this function definition. Its bizarre, and I'm hoping someone might be able to clarify this. Why is number repeated here?
function calculationCommission(monthlyRevenue: number): number {
//function does stuff
}
First number is type of argument of function that will receive and second one is type of function return. In this situation both are number