The Difference
- in the console = 在控制台环境内(执行操作)
- on the console = 在控制台屏幕上(显示内容)
Usage Guide
In the Console (Most Common)
Use: When executing operations inside the console environment
Examples:
- ✅ “Run the command in the console.” (在控制台里运行)
- ✅ “Type the code in the console.” (在控制台里输入)
- ✅ “Debug in the browser console.” (在浏览器控制台里调试)
- ✅ “Execute the script in the console.” (在控制台里执行脚本)
On the Console
Use: When something is displayed on the console screen/surface
Examples:
- ✅ “The error message appeared on the console.” (错误显示在控制台屏幕上)
- ✅ “The output shows on the console.” (输出显示在控制台上)
Quick Reference
| Context | Preposition | Example |
|---|---|---|
| Execute/input | in the console | “Run it in the console” ✅ |
| Display/output | on the console | “Shows on the console” ✅ |
Common Mistakes
| ❌ Less Natural | ✅ More Natural | Note |
|---|---|---|
| Run it on the console | Run it in the console | 技术操作用 in |
| Type on the console | Type in the console | 输入操作用 in |
Memory Trick
- in the console → 在控制台里做操作 (environment)
- on the console → 在控制台屏幕上显示 (surface)
Practice
Choose the correct preposition:
- “Check the error log ___ the console.”
- “The results show ___ the console screen.”
- “Execute the command ___ the console.”
- “I saw the warning ___ the console.”
Answers:
- in (checking is an action)
- on (displaying)
- in (executing is an action)
- on (saw something displayed)