Skip to content

Commit a050a8c

Browse files
authored
Merge pull request #572 from ut-code/fix-console-log-decription
Fix description of `console.log`
2 parents b768178 + 0c762d7 commit a050a8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/2-browser-apps/01-inspector/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ JavaScript の実行がブレークポイントを設定した地点に差し掛
105105

106106
:::tip[`console.log` 関数]
107107

108-
デバッガを使わずに、`console.log` 関数を使ってデバッグすることもできます。`console.log` 関数は、ブラウザの開発者ツールの `Console` に値を出力する関数です
109-
以下のプログラムは `x``y` の和を出力するプログラムですが、`console.log` 関数を使ってプログラムの実行中に値の変化を確認したり、エラーが発生した際に原因を特定することができます
108+
`console.log` 関数は、メッセージをブラウザの開発者ツールの `Console` に出力します
109+
`console.log` 関数を使ってプログラムの実行中に値の変化を確認したり、問題が発生した時に原因を特定したりすることができます
110110

111111
```javascript
112112
const x = 5;
113113
const y = 10;
114114
const sum = x + y;
115-
console.log("x + y = ", sum);
115+
console.log("x + y は、", sum);
116116
```
117117

118118
:::

0 commit comments

Comments
 (0)