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

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.

主站蜘蛛池模板: 云南省| 宁海县| 平罗县| 青河县| 武乡县| 铁岭市| 新宾| 莆田市| 友谊县| 凤山市| 渝中区| 夏邑县| 崇礼县| 宁德市| 酉阳| 达日县| 盖州市| 南召县| 富阳市| 天全县| 元朗区| 诸暨市| 青州市| 改则县| 莱阳市| 诸城市| 自贡市| 阿拉善左旗| 绥滨县| 福鼎市| 玉环县| 曲沃县| 平泉县| 永寿县| 疏勒县| 达孜县| 达州市| 理塘县| 湘阴县| 诸暨市| 张家口市|