I've just started learning about function. and here is what gives me difficulty.
const Func = () => {
return () => {
console.log('hello');
};
};
const innerFunc = Func();
innerFunc(); // 1.
Func(); //2.
I don't understand why 'hello' doesn't show up on console trying with 2.
Aren't both innerFunc and Func names of function?
I don't know the difference between them.
Sorry for my bad English.