- Hands-On Full Stack Web Development with Aurelia
- Diego Jose Argüelles Rojas Erikson Haziz Murrugarra Sifuentes
- 70字
- 2021-06-25 20:58:14
Functional
A function is an object inside itself. They have properties, methods, and can include inner functions. It's a way to encapsulate a functionality you want to reuse in more than one place in your application; you just need to write the function name instead of all the code inside that, just like the following example:
function sum(numberA, numberB){
return numberA + numberB
}
sum(4,5) //9
sum(5,2) //7
sum(sum(5,1),9) //15
推薦閱讀
- 通信網(wǎng)絡(luò)基礎(chǔ)與設(shè)備
- 高校網(wǎng)絡(luò)道德教育研究
- EDA技術(shù)與VHDL編程
- GPS/GNSS原理與應(yīng)用(第3版)
- 物聯(lián)網(wǎng)檢驗(yàn)檢測(cè)技術(shù)
- 網(wǎng)絡(luò)故障現(xiàn)場(chǎng)處理實(shí)踐(第4版)
- Force.com Development Blueprints
- 物聯(lián)網(wǎng)+BIM:構(gòu)建數(shù)字孿生的未來(lái)
- WordPress 5 Complete
- 區(qū)塊鏈輕松上手:原理、源碼、搭建與應(yīng)用
- 物聯(lián)網(wǎng)通信技術(shù)
- Microservice Patterns and Best Practices
- CCNP TSHOOT(642-832)認(rèn)證考試指南
- 物聯(lián)網(wǎng)頂層設(shè)計(jì)與關(guān)鍵技術(shù)
- Practical Web Penetration Testing