I'm relatively new to JS/TS so please excuse my lack of knowing the names of these two types of functions, if I did I probably wouldn't have to create a new question here.
But I wanted to know what the difference is behind these two functions:
const doubleNumber: (i: number) => number = (i: number) => {
return i * 2;
};
const doubleNumber2 = (i: number) => {
return i * 2;
};
Apologies for the (most likely) duplicate question.