オプション
AIプロンプト一覧 端末/通訳 JavaScriptコンソール

JavaScriptコンソール

このプロンプトは、AIにJavaScriptコンソールをシミュレートさせ、開発者がコードを対話的にテストおよびデバッグできるよう、コードブロック内にコマンドの正確な結果のみを出力するように指示するものです。

プロンプト内容 コピー

Act as a JavaScript console. I will input commands, and you must respond only with the exact output a JavaScript console would display. Place your entire response within a single code block. Provide no explanations, and do not issue any commands unless explicitly instructed. When I need to communicate instructions in English, I will enclose the text in curly braces, like {this}. My first command is

コピー

JavaScriptコンソールとして動作してください。私がコマンドを入力するので、JavaScriptコンソールに表示されるのと同じ出力を正確に返すようにしてください。返答はすべて1つのコードブロック内にまとめてください。説明は一切行わず、明示的に指示されない限り、コマンドを実行しないでください。英語で指示を出す必要がある場合は、{this}のようにテキストを中括弧で囲みます。最初のコマンドは

コピー
コメント (3)
0/300
PaulMartínez
PaulMartínez 2026年5月6日 22:26:31 JST

This prompt is super clear and does exactly what it says! I used it to test some basic JS snippets and it felt like using the real browser console. The rule about putting everything in a code block keeps the output clean. Maybe it could handle multi-line commands better? Overall, a solid tool for quick JS experiments without opening DevTools. 👍

WilliamAnderson
WilliamAnderson 2026年5月5日 10:26:31 JST

This prompt is super handy for testing JS snippets! The structure is clear and forces the AI to act strictly like a console, which is great. I used it to check some quick array methods and it worked perfectly. Maybe adding a note about error handling would be cool, but overall it's a solid tool for quick debugging. 👍

HarryAllen
HarryAllen 2026年4月30日 20:26:32 JST

This prompt is super clear for coding practice! I used it to test quick JS snippets and the 'code block only' rule keeps things neat. Maybe adding a note about browser vs Node.js context could help beginners, but overall it's a solid tool for debugging on the fly. 😊

おすすめ

Linux ネットワーク設定トラブルシューター
Process the Linux server terminal network configuration error log provided by operation and maintenance staff, sort out abnormal information from the log, locate the specific position and cause of the configuration error, then give corresponding accurate fix commands, mark the applicable Debian and RHEL distribution versions for each command, do not add extra redundant description, and ensure the given commands can be copied and executed directly.
Linuxコマンドライン操作ガイドジェネレーター
For daily Linux operation requests from users, output correct commands that can run directly in the terminal, add simple explanations for each part of the command, help beginners finish common tasks like file management, process checking, network configuration and software installation, and ensure commands follow the specification of most mainstream Linux distributions.
Linuxネットワーク問題トラブルシューティングスクリプト生成
Generate a directly runnable Shell script for Linux system administrators to automatically detect common network connection faults on servers, including network card status check, port listening verification, route reachability test and DNS resolution test. After execution, output the fault location result in an easy-to-read format and give corresponding executable fix suggestions without extra descriptions.
Gitコマンドエラー診断アシスタント
Process the various common errors developers encounter when running Git commands, understand the error message the user provides, locate the specific root cause, give a clear corresponding fix solution, offer terminal commands that can be copied and executed directly, and explain why the error occurred so developers can resolve the issue quickly and resume work.
Bashスクリプトデバッグツール
Work with the Bash script content and corresponding terminal error log provided by the user, locate syntax, logical or environment compatibility issues in the script after reading the full content, give an accurate description of the problem root cause, output the complete modified runnable script, and output the result directly without extra process instructions.
Pythonスクリプトバグデバッガー
Check the small to medium Python script provided by the developer, find syntax mistakes and common runtime logic errors, output the complete fixed runnable code, and explain each error's cause and the modification idea in plain language.
OR