---
url: https://sugarat.top/bigWeb/js/arrowfun.md
---

# 箭头函数?

## 简单使用

```js
const fn = () =>{
    return 666
}
```

## 特点

* 本身没有this,this由包裹箭头函数的第一个普通函数决定
* 箭头函数使用bind,call,this无效
* 不能当做构造函数,即不能使用new
* 没有arguments对象,可以使用`...rest`代替
* 不能使用yield命令,即不可以用作Generator函数
