LoginSignup
1
5

More than 5 years have passed since last update.

JavaScript(ECMAScript)での関数の書き方3種

Posted at

Javascriptについてはほぼ書いてないので。

普通の関数

普通の関数
function 関数名 (パラメータ, ...) {
    処理
}

無名関数

無名関数
const f = function (パラメータ, ...) {
    処理
}

f(パラメータ)

アロー関数

アロー関数
(パラメータ, ...) => {
    処理
}
1
5
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
1
5