Something went wrong. Try again.
javascript for 🐜's, a tiny runtime with big ambitions antjs.org
Something went wrong. Try again.
JavaScript
1234567const funcs = [];for (let i = 0; i < 3; i++) { const captured = i; funcs.push(() => captured);}console.log(funcs[0](), funcs[1](), funcs[2]());