Zpro-
Tools
!
Run Code
Clear Output
Format Code
Auto Run
Light Theme
Dark Theme
12px
14px
16px
18px
20px
// Simple Node.js example (browser-safe) const greeting = "Hello from Node.js!"; console.log(greeting); // Basic math example const sum = (a, b) => a + b; console.log('2 + 3 =', sum(2, 3)); // Array operations const numbers = [1, 2, 3, 4, 5]; console.log('Doubled numbers:', numbers.map(n => n * 2)); // Note: File system and network operations are simulated
Console Output
Output will appear here...
Note:
This browser-based Node.js environment has limitations:
No real file system access
Network operations are simulated
Limited module support
For security, some APIs are restricted