Skip to content

Commit 8ef83e9

Browse files
authored
functionsのadd関数の例を修正
1 parent 80dde47 commit 8ef83e9

File tree

1 file changed

+2
-1
lines changed
  • docs/1-trial-session/09-functions

1 file changed

+2
-1
lines changed

docs/1-trial-session/09-functions/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ greet("morning", "佐藤");
5151

5252
```javascript
5353
function add(a, b) {
54-
return a + b;
54+
const sum = a + b;
55+
return sum;
5556
}
5657

5758
document.write(add(3, 4));

0 commit comments

Comments
 (0)