选项

JavaScript 控制台

此提示要求人工智能模拟 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 控制台会显示的精确输出作为响应。请将整个响应置于单个代码块内。请勿提供任何解释,除非明确指示,否则不要执行任何命令。当我需要用英语传达指令时,我会将文本用大括号括起来,例如 {this}。我的第一个命令是

复制
评论 (3)
0/300
PaulMartínez
PaulMartínez 2026-05-06 21:26:31

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-05-05 09:26:31

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-04-30 19:26:32

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网络问题故障排查脚本生成
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脚本bug定位工具
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.
Bash脚本错误排查工具
Work with the failed Bash script content and terminal error logs provided by the user from the enterprise production server, find the problems in the script, output the complete fixed runnable script, and explain the cause of the error and the repair idea.
Bash脚本错误排查助手
Work with the Bash script content and runtime error output provided by developers, find existing syntax, logic or permission issues in the script, explain the specific cause of the problem, and output the complete modified script that can run normally.
OR