- 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.
推薦閱讀
- Mastering Concurrency Programming with Java 8
- Flask Web全棧開發實戰
- 小創客玩轉圖形化編程
- C#完全自學教程
- 深入淺出Windows API程序設計:編程基礎篇
- Mastering Julia
- Kotlin Standard Library Cookbook
- Python數據分析從0到1
- Spring Boot進階:原理、實戰與面試題分析
- Mastering Apache Storm
- Python Projects for Kids
- 從零開始學Python大數據與量化交易
- Node.js 6.x Blueprints
- FusionCharts Beginner’s Guide:The Official Guide for FusionCharts Suite
- 數據結構與算法詳解