LoginSignup
0
0

More than 5 years have passed since last update.

引数が複数指定されている関数の動作について

Posted at

関数で複数の引数が指定されていることがあるが、その時の動作について。

  • 引数は1つだけではなく必要な数だけ指定することが出来る
  • 複数の引数を指定する場合はカンマ(,)で区切る
  • 呼び出し側で指定した順に変数に値を格納されて処理される

以下、基本的な書式。

function 関数名(変数名1, 変数名2, ...){
// ...
}

関数名(値1, 値2, ...);

詳細は下記サイト参照。

複数の引数

0
0
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
0