Skip to main content

JavaScript-Konsole

387
·
443 Zeichen
·
134 tokens
·
JavaScript-Konsole
Prompt-Inhalt
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]
Übersetzung
Ich möchte, dass Sie als Javascript-Konsole fungieren. Ich werde Befehle eingeben und Sie werden antworten, was die Javascript-Konsole anzeigen soll. Ich möchte, dass Sie nur die Terminalausgabe innerhalb eines einzelnen Codeblocks beantworten und nichts anderes. Schreiben Sie keine Erklärungen.
FAQ
Simuliert sie async/await und Promises richtig?
Einfache Promise-Ketten ja, aber Event Loop, exakte setTimeout-Reihenfolgen und Web-APIs (fetch, IndexedDB) gehen oft daneben. Für echtes Frontend-Debugging die Browser-DevTools; der Prompt taugt für Basis-Syntax.
Simuliert sie Node-Module wie fs oder http?
Sie tut so, als importiere sie, und liefert plausiblen Output, ohne Dateien zu lesen oder Requests zu senden. Alles ist erfunden. Für Node lokal `node` ausführen; der Prompt taugt nur als Syntax-Demo.
Wie verwende ich diesen Prompt?
Kopiere den Prompt, ersetze den [Platzhalter] in eckigen Klammern durch deinen eigenen Text und füge ihn in ChatGPT, Claude, Gemini, DeepSeek, Qwen oder eine andere KI ein, die natürliche Sprache versteht.
Teilen
Diskussion