- 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.
推薦閱讀
- Extending Jenkins
- Instant Node Package Manager
- 基于粒計(jì)算模型的圖像處理
- Progressive Web Apps with React
- JavaScript全程指南
- 構(gòu)建移動(dòng)網(wǎng)站與APP:HTML 5移動(dòng)開發(fā)入門與實(shí)戰(zhàn)(跨平臺(tái)移動(dòng)開發(fā)叢書)
- Vue.js快速入門與深入實(shí)戰(zhàn)
- Linux網(wǎng)絡(luò)程序設(shè)計(jì):基于龍芯平臺(tái)
- 精通Linux(第2版)
- Spring核心技術(shù)和案例實(shí)戰(zhàn)
- Essential C++(中文版)
- Hands-On Neural Network Programming with C#
- 單片機(jī)原理及應(yīng)用技術(shù)
- Learning Image Processing with OpenCV
- Yii2 By Example