JavaScript สนามเด็กเล่น

รัน JavaScript และ TypeScript ออนไลน์ด้วยเอาต์พุตคอนโซลทันที

สนามเด็กเล่นออนไลน์ JavaScript และ TypeScript ฟรี

เขียน JavaScript หรือ TypeScript และเรียกใช้ทันทีในเบราว์เซอร์ของคุณ Dokall transpiles TypeScript ด้วย esbuild และจับเอาต์พุต console.log พร้อมกำหนดเวลาดำเนินการ

เหมาะสำหรับการเรียนรู้ การทดสอบตัวอย่าง และอัลกอริธึมการแก้ไขจุดบกพร่อง การดำเนินการทั้งหมดเกิดขึ้นในเบราว์เซอร์ของคุณ - รหัสของคุณจะไม่ถูกส่งไปยังเซิร์ฟเวอร์

Frequently Asked Questions

What JavaScript features are supported?
The playground runs modern JavaScript (ES2020+) in a sandboxed browser environment. Supports arrow functions, async/await, classes, destructuring, template literals, and most standard library APIs available in browsers.
Can I use npm packages?
The playground runs vanilla JavaScript without npm imports. For testing code that uses external packages, use the browser console or a local Node.js environment. Basic DOM APIs are available.
Is the code executed on a server?
No. Code runs entirely in your browser using a sandboxed execution environment. Nothing is sent to Dokall servers. Console output appears in the playground panel.
Can I share my code?
Copy the code manually to share it. The playground does not generate shareable URLs. For collaborative snippets, use a gist or paste service alongside this tool.
What is the difference between this and the browser console?
Both run JavaScript client-side. The playground provides a dedicated editor with syntax highlighting, a run button, and formatted output panel. The browser console (F12) is better for debugging live pages with full DOM access.