Run Deno 2 online — secure-by-default JavaScript/TypeScript runtime, browser-hosted.
Deno is Ryan Dahl's post-Node take on a JavaScript/TypeScript runtime: TypeScript native, ES modules first, permissions system by default, standard library that ships with the runtime.
ls-judge runs Deno 2 inside a Firecracker microVM. No `--allow-net` flags matter here — the sandbox blocks network anyway. Bring code, get verdicts.
Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.
const lines=[];
process.stdin.on('data',d=>lines.push(d));
process.stdin.on('end',()=>{
const n=parseInt(lines.join('').trim());
process.stdout.write((n*2)+'\n');
});
21
42