# JavaScript Console

> JavaScript Console

| Field | Value |
| --- | --- |
| Content type | [Code](https://dopamine-prompt.com/en/type/code) |
| Models | [GPT](https://dopamine-prompt.com/en/model/gpt) |
| Tags | [Terminals & interpreters](https://dopamine-prompt.com/en/tag/interpreter) |
| License | [MIT](https://opensource.org/license/mit) (Copyright (c) 2023 rockbenben) |
| Source | Submitted by [小周在写稿](https://dopamine-prompt.com/en/u/8c321b84-5296-463a-a001-c78e052dcd89) |
| Last updated | 2026-11-26 |

## Prompt

```
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]
```

## Words you can change

The words in brackets in the prompt can be replaced with your own.

- `{like this}`: Type your own.
- `[javascript code]`: Type your own.

Web page: <https://dopamine-prompt.com/en/prompts/javascript-console>
