官术网_书友最值得收藏!

  • Redux Quick Start Guide
  • James Lee Tao Wei Suresh Kumar Mukhiya
  • 56字
  • 2021-07-02 12:40:28

Assigning functions to variables

An example of calculating body mass index (BMI), provided the height (in meters) and weight (in kilograms), can be created via the following method. The function is stored in a variable named bmi and can be called whenever it is required:

const bmi = (weight, height) => weight / (height * height);
主站蜘蛛池模板: 东丰县| 德清县| 通河县| 军事| 大理市| 浦城县| 泾川县| 沂源县| 唐河县| 嫩江县| 普定县| 庄浪县| 璧山县| 临夏县| 定远县| 灵宝市| 大丰市| 永宁县| 昆山市| 宜兴市| 涿鹿县| 江达县| 丁青县| 新和县| 榆林市| 华容县| 稷山县| 绥中县| 洮南市| 大城县| 阜新| 鱼台县| 射洪县| 吉木萨尔县| 祥云县| 清苑县| 如东县| 永康市| 华蓥市| 仁寿县| 津市市|