With functions we should annotate any parameters and return types.
In Js:
const sayHello = name = > {
return "\Hello ${name};
}
In Ts:
const sayHello = (name: string): string => {
return "\Hello ${name};
}
If a function doesn't return anything, the return type is void