# Step 3: Comments

Sometimes you might want to make a note for yourself in your code. Comments can be helpful for remembering logic and terminology, and make your code easier to understand for other people.

## Try it out <a href="#try-it-out" id="try-it-out"></a>

To create a single line comment in JavaScript, you place two slashes `//` in front of the code or text. When you place these two slashes, all text to the right of them will be ignored, until the next line.

For example, here's a comment on the line above some code:

```javascript
// checking type of hello world
console.log(typeof 'Hello world!');
```

You can even put comments on the same line as actual code:

```javascript
console.log(typeof 'Hello world!'); // checking type of hello world
```

{% hint style="info" %}

#### Mini challenge <a href="#mini-challenge" id="mini-challenge"></a>

Add some helpful comments to the code you wrote in the last step. Run the code and make sure you haven't broken anything!
{% endhint %}


---

# 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://node-girls.gitbook.io/beginners-javascript/tutorial/step-3-comments.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.
