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 3 years have passed since last update.

【JavaScript】コールバック関数に匿名関数をいれてみる

Posted at

##匿名関数について
匿名関数がない場合とある場合で分けてます。
書き方が違います。
現場でよく使われるらしいです。
機能は一緒です。

//子機能2(匿名関数なし)
function followCancel(){
  console.log("本当にフォローを外しますか?");
}

//子機能2(匿名関数)
const followCancel = function(){
  console.log("本当にフォローを外しますか?");
}
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?