Skip to content

Fix description of console.log #572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/2-browser-apps/01-inspector/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ JavaScript の実行がブレークポイントを設定した地点に差し掛

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

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

```javascript
const x = 5;
const y = 10;
const sum = x + y;
console.log("x + y = ", sum);
console.log("x + y は、", sum);
```

:::
Expand Down