- 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.
推薦閱讀
- Apache ZooKeeper Essentials
- Spring技術內(nèi)幕:深入解析Spring架構與設計
- Learning Chef
- Power Up Your PowToon Studio Project
- 區(qū)塊鏈架構與實現(xiàn):Cosmos詳解
- 趣學Python算法100例
- 編程珠璣(續(xù))
- Redis Essentials
- 深入分布式緩存:從原理到實踐
- Java Web開發(fā)詳解
- Learning Modular Java Programming
- 從零開始:UI圖標設計與制作(第3版)
- 微課學人工智能Python編程
- Oracle數(shù)據(jù)庫編程經(jīng)典300例
- Python數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南(全彩)