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

More than 1 year has passed since last update.

Javascript 関数の作り方

Posted at

JavaScriptプログラマーによるJavascriptプログラマーのためのJavaScriptでの関数の作り方

function greet(name) {
  //関数の内容を書く
}

このように、関数は作成できる

例えば、

名前を受け取り、 挨拶する関数プログラムは、以下のように作成する

  1. 挨拶関数greetを作る

  2. greetを呼び出す

完成系

function greet(name) {
  var message = "Hello, " + name + "!"
   console.log(message)
}

greet("Hikaru");

のように記述する

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?