- Mastering JavaScript Functional Programming
- Federico Kereki
- 94字
- 2021-07-02 22:41:12
Arrow functions - the modern way
Even if arrow functions pretty much work as the other functions, there are some important differences with usual functions. These functions can implicitly return a value, the value of this is not bound, and there is no arguments object. Let's go over these three points.
There are some extra differences: arrow functions cannot be used as constructors, they do not have a prototype property, and they cannot be used as generators because they don't allow the yield keyword. For more details on these points, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions#No_binding_of_this.
推薦閱讀
- 計(jì)算思維與算法入門
- CentOS 7 Server Deployment Cookbook
- PyTorch自然語言處理入門與實(shí)戰(zhàn)
- 前端架構(gòu):從入門到微前端
- 區(qū)塊鏈底層設(shè)計(jì)Java實(shí)戰(zhàn)
- 網(wǎng)絡(luò)數(shù)據(jù)采集技術(shù):Java網(wǎng)絡(luò)爬蟲實(shí)戰(zhàn)
- 愛上C語言:C KISS
- Python機(jī)器學(xué)習(xí)與量化投資
- Hands-On Dependency Injection in Go
- JavaScript設(shè)計(jì)模式與開發(fā)實(shí)踐
- Java程序性能優(yōu)化實(shí)戰(zhàn)
- JavaScript全棧開發(fā)
- Python量子計(jì)算實(shí)踐:基于Qiskit和IBM Quantum Experience平臺(tái)
- VBA Automation for Excel 2019 Cookbook
- Visual C++.NET(2008)典型案例