# 3.2 註解(Comment)

JavaScript 註解有二種：

* 單行註解：以 `//` 雙斜線開頭，該行雙斜線後面的文字都會被視為註解。
* 多行註解：以 `/*` 開頭，以 `*/` 結束，在這 2 個符號之間的文字，都會被視為註解。

```markup
<!DOCTYPE html>
<html lang="zh-Hant">
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <p>這是段落</p>
    
    <!-- 寫在 body 結束標籤之前 -->
    <script>
      // 這是單行註解
      /*
        這是
        多行註解
      */
      var a = 1;
      var b = 2;
      var c = a + b;
    </script>
  </body>
</html>
```

**註解的用意**：給「人」看的，瀏覽器遇到註解符號，會直接跳過，並**不會顯示於網頁**上，但會顯示於「**頁面原始碼**」中。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.webmix.cc/javascript/ji-chu/3.2-js-comment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
