CoffeeScript · online compiler

Run CoffeeScript online

Run CoffeeScript 2 online — compiles to JavaScript. Sandboxed, no install.

Firecracker microVM live per-test verdicts multi-file compile

CoffeeScript compiles to JavaScript with a lighter syntax influenced by Ruby and Python. Historic Rails ecosystem staple, still used in some codebases, still worth learning if you want to see the shape of ES6 sugar before ES6 shipped.

ls-judge compiles your .coffee source and runs the emitted JS on Node inside a Firecracker microVM.

Starter code

What you get in CoffeeScript

Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.

coffeescript
CoffeeScript 2
lines = []
process.stdin.on 'data', (d) -> lines.push d.toString()
process.stdin.on 'end', ->
  n = parseInt lines.join('').trim()
  process.stdout.write "#{n*2}\n"
stdin →21
expected →42
FAQ

Common questions about CoffeeScript on ls-judge

CoffeeScript 1 or 2?
CoffeeScript 2, which emits modern ES6+ JavaScript.
Which Node version?
Node 22 — matches our JavaScript runtime.
Can I require npm packages?
No — the sandbox has no network to pull packages. Bring source only.
Is this free?
Yes.
Further reading
Also try