- 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);
推薦閱讀
- 少兒人工智能趣味入門:Scratch 3.0動畫與游戲編程
- Java開發入行真功夫
- Python Tools for Visual Studio
- Visual Basic程序設計習題解答與上機指導
- Visual Basic程序設計上機實驗教程
- 一塊面包板玩轉Arduino編程
- Extreme C
- Kivy Cookbook
- 平面設計經典案例教程:CorelDRAW X6
- Android應用開發實戰
- Continuous Delivery and DevOps:A Quickstart Guide Second Edition
- 3D Printing Designs:The Sun Puzzle
- VMware vSphere 5.5 Cookbook
- Mastering ASP.NET Web API
- 軟件再工程:優化現有軟件系統的方法與最佳實踐