From 5ea028853ed4faf7ecccc96681c00e6bb9a474cc Mon Sep 17 00:00:00 2001 From: chvmvd <104971044+chvmvd@users.noreply.github.com> Date: Tue, 26 Sep 2023 09:53:41 +0900 Subject: [PATCH] Fix description of syntax of anonymous function --- docs/2-browser-apps/04-anonymous-function/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/2-browser-apps/04-anonymous-function/index.md b/docs/2-browser-apps/04-anonymous-function/index.md index cae174ed4..e69434a4a 100644 --- a/docs/2-browser-apps/04-anonymous-function/index.md +++ b/docs/2-browser-apps/04-anonymous-function/index.md @@ -40,10 +40,11 @@ document.getElementById("strange-button").onclick = () => { JavaScript における関数式の構文は、次のとおりです。`=>` の記号が特徴的な構文となっています。 + ```javascript (引数1, 引数2) => { 処理; -}; +} ``` :::tip 無名関数を用いて関数定義を書き換える