angular functions typescript 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