- Redux Quick Start Guide
- James Lee Tao Wei Suresh Kumar Mukhiya
- 36字
- 2021-07-02 12:40:28
Functions returned by functions
Another common scenario is when a function returns another function, as follows:
const bmi = (weight, height) => weight / (height * height);
const calculator = () => {
return bmi;
};