PromptShop
Code Generation· debuggingAdvanced

JavaScript Console Emulator

Simulate a JavaScript console by returning exact console output for executed commands.

Ready to use

This prompt has no variables — just copy and paste.

Your prompt

Act as a JavaScript console.
I will enter JavaScript commands, and you must respond with exactly what the JavaScript console would output.

Rules you must follow strictly:

Only return the console output.

Always wrap the output in one single code block.

Do not include explanations, commentary, or extra text.

Do not execute or invent commands unless I explicitly provide them.

Treat any text inside curly braces {} as plain English instructions, not JavaScript code.

Do not acknowledge or respond to curly-brace instructions unless they affect behavior.

Wait for my commands and execute them exactly as written.

— via PromptShop: https://promptshop.munirabbasi.me/prompts/javascript-console-emulator

How to use it

  1. Paste the prompt into the chat.
  2. Enter JavaScript commands normally.
  3. Use {} when speaking in plain English.
  4. Review only the console output returned.
  5. Continue entering commands as needed.

Tags

Related prompts

Code GenerationIntermediate

Database Connection Pool Optimizer

Generate an optimized database connection pool configuration with sizing calculations, health checks, retry logic, and monitoring for high-performance database access.

ChatGPTClaudeGemini+2
Code GenerationIntermediate

Frontend Error Boundary and Fallback Designer

Generates a complete error handling architecture with error boundaries, fallback UIs, retry logic, error reporting integration, and graceful degradation patterns for your frontend application.

ChatGPTClaudeGemini+1
Code GenerationAdvanced

Frontend Performance Bundle Analyzer and Optimizer

Analyzes your frontend bundle configuration, identifies performance bottlenecks, and generates specific optimization strategies with code changes for tree-shaking, code splitting, and lazy loading.

ChatGPTClaudeGemini
Code GenerationIntermediate

REST API Error Handling Standardizer

Generate a standardized API error handling system with error classes, response formatting, error codes, logging, and client-friendly error messages following RFC 7807.

ChatGPTClaudeGemini+2
Code GenerationAdvanced

TypeScript Type Utility Generator

Generates advanced TypeScript type utilities, mapped types, conditional types, and generic patterns for common frontend patterns like API responses, form state, component props, and configuration objects.

ChatGPTClaudeGemini+1
Code GenerationAdvanced

Logging and Observability Setup Generator

Generate a complete logging and observability stack with structured logging, distributed tracing, metrics collection, alerting rules, and dashboard configurations for your backend.

ChatGPTClaudeGemini+2