🎓
AcademiaHub
Code Lab ⚡
Log In
⚡
Code Lab
Write, run, and experiment with code directly in your browser.
🐍 Python
🟨 JavaScript
Log in
to save your code snippets and organise them in folders.
javascript
▶ Run
Files (Working Directory)
+ Add File
// JavaScript Playground 🟨 // Try editing and running this code! function greet(name) { return `Hello, ${name}! 👋`; } console.log(greet("AcademiaHub")); // Fibonacci example function fib(n) { let a = 0, b = 1; const result = []; for (let i = 0; i < n; i++) { result.push(a); [a, b] = [b, a + b]; } return result; } console.log(fib(10).join(" "));
💡 Tips
Use
console.log()
to output values
Modern ES2022 syntax is supported
JavaScript runs in your browser; limited
fs
and
path
APIs are available