- 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);
推薦閱讀
- 從0到1:HTML+CSS快速上手
- 深入理解Java7:核心技術(shù)與最佳實(shí)踐
- Expert Android Programming
- Xamarin.Forms Projects
- RISC-V體系結(jié)構(gòu)編程與實(shí)踐(第2版)
- 搞定J2EE:Struts+Spring+Hibernate整合詳解與典型案例
- Julia for Data Science
- UI設(shè)計(jì)全書(shū)(全彩)
- Apache Camel Developer's Cookbook
- HTML+CSS+JavaScript編程入門(mén)指南(全2冊(cè))
- 超好玩的Scratch 3.5少兒編程
- 企業(yè)級(jí)Java現(xiàn)代化:寫(xiě)給開(kāi)發(fā)者的云原生簡(jiǎn)明指南
- Unreal Engine Game Development Cookbook
- Cinder:Begin Creative Coding
- Python程序設(shè)計(jì)案例教程