官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 武宁县| 南川市| 盘锦市| 卢龙县| 五寨县| 泰安市| 贺兰县| 黑河市| 手机| 怀柔区| 建昌县| 东乡族自治县| 临泉县| 云南省| 成安县| 富顺县| 鱼台县| 诸暨市| 崇州市| 延安市| 重庆市| 聂拉木县| 岳西县| 长沙县| 东乌珠穆沁旗| 岗巴县| 监利县| 铜陵市| 子洲县| 常熟市| 祁连县| 阿拉善左旗| 南投市| 太白县| 高唐县| 和静县| 余江县| 手机| 阿图什市| 青冈县| 广南县|