# JavaScript 控制台

> JavaScript Console

| 项目 | 内容 |
| --- | --- |
| 内容类型 | [代码](https://dopamine-prompt.com/zh/type/code) |
| 模型 | [GPT](https://dopamine-prompt.com/zh/model/gpt) |
| 标签 | [终端/解释器](https://dopamine-prompt.com/zh/tag/interpreter) |
| 许可 | [MIT](https://opensource.org/license/mit)（Copyright (c) 2023 rockbenben） |
| 来源 | [小周在写稿](https://dopamine-prompt.com/zh/u/8c321b84-5296-463a-a001-c78e052dcd89) 投稿 |
| 最后更新 | 2026-11-26 |

## 提示词

### 中文

```
I want you to act as a javascript console. I will type commands and you will reply with what the javascript console should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. do not write explanations. do not type commands unless I instruct you to do so. when I need to tell you something, I will do so by putting text inside curly brackets {备注文本}. My first command is [JavaScript 代码]
```

### English

```
I want you to act as a javascript console. I will type commands and you will reply with what the javascript console should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. do not write explanations. do not type commands unless I instruct you to do so. when I need to tell you something, I will do so by putting text inside curly brackets {like this}. My first command is [javascript code]
```

## 可以换的词

正文里带括号的词可以换成你自己的内容。

- `{备注文本}`：自己填。
- `[JavaScript 代码]`：自己填。
- `{like this}`：自己填。
- `[javascript code]`：自己填。

详情页：<https://dopamine-prompt.com/zh/prompts/javascript-console>
