โšก Shell Code โ€” Interactive JavaScript

Ctrl+Enter to run ยท Ctrl+L to clear
Editor
Output
๐Ÿ“– Help โ€” API Reference (click to expand)
Built-in Functions: Built-in Variables: Examples:
// Print something
print("Hello, Shell!")

// Loop and print
for (let i = 1; i <= 5; i++) {
  print(i)
}

// Array manipulation
const nums = [1, 2, 3, 4, 5]
const doubled = nums.map(n => n * 2)
print(doubled)

// Async fetch
const result = await fetch("https://api.github.com/repos/openai/openai")
print(await result.json())

// Math helper
print(fibonacci(10))