LoginSignup
0
1

More than 1 year has passed since last update.

JavaScript のアロー関数の書き方

Posted at

自分はあまりコードは書きません。
色々記法があって忘れがちなのでメモします。

アロー関数

アロー関数のメリット

1.関数を簡略化できる
2.thisを束縛できる

アロー関数の例

const CalcSum = (a,b,c) => {
const result = a + b + c;
return result;
}
const myFuntion1 = (a) => {
 return a + 2;
})
const myFunction2 = a => {
 return a + 2;
});
const myFunction3 = (a) => a + 2;
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1