Skip to content

Commit 5ea0288

Browse files
committed
Fix description of syntax of anonymous function
1 parent 330789a commit 5ea0288

File tree

1 file changed

+2
-1
lines changed
  • docs/2-browser-apps/04-anonymous-function

1 file changed

+2
-1
lines changed

docs/2-browser-apps/04-anonymous-function/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ document.getElementById("strange-button").onclick = () => {
4040

4141
JavaScript における関数式の構文は、次のとおりです。`=>` の記号が特徴的な構文となっています。
4242

43+
<!-- prettier-ignore -->
4344
```javascript
4445
(引数1, 引数2) => {
4546
処理;
46-
};
47+
}
4748
```
4849

4950
:::tip 無名関数を用いて関数定義を書き換える

0 commit comments

Comments
 (0)