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

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.

主站蜘蛛池模板: 化德县| 廉江市| 兖州市| 辽中县| 垣曲县| 霍州市| 翼城县| 平武县| 和田县| 开江县| 舒兰市| 樟树市| 攀枝花市| 遵化市| 苍南县| 茌平县| 同德县| 平塘县| 开化县| 新营市| 盐津县| 临潭县| 榆林市| 会理县| 固镇县| 平塘县| 临夏县| 长宁区| 五华县| 额济纳旗| 玉溪市| 泸定县| 临潭县| 剑川县| 秭归县| 鹤壁市| 法库县| 宿州市| 广灵县| 佛冈县| 财经|