1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【関数宣言】

Posted at

関数宣言とは

関数宣言は、その名の通りfunction文を用いて関数を宣言する方法。宣言した関数は、後から直接「関数名」を記述することで実行される。

//function(関数)の定義
function test(){
  cosole.log( 'Hello World!' );
}

//function(関数)の呼び出し
test();
function add(a,b){
   return a + b;
}
console.log(add(4,5)); 
//aとb,2つの引数を持っててその合計の和をコンソールに出してる。
1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?