Skip to content
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 @@ -103,10 +103,10 @@ JavaScript の実行がブレークポイントを設定した地点に差し掛

![ステップ アウト](./step-out.png)

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

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

今回は関係ないですが

  • 以下!!
  • 「エラー」はちゃんと定義せずに使うのはちょい問題がある気がします。「問題が発生したとき」とかでどうでしょ

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

そもそもconsole.log関数の説明いろいろとよくないので、直しちゃいます!


```javascript
const x = 5;
Expand Down