typescript specifty arrow function type code example
Example: typescript arrow function
let sum = (x: number, y: number): number => {
return x + y;
}
sum(10, 20); //returns 30
let sum = (x: number, y: number): number => {
return x + y;
}
sum(10, 20); //returns 30