English
Open in Telegram

Post CHALLENGE

8 September 2026
J
JavaScript
CHALLENGE function createCounters() { const counters = []; for (let i = 0; i < 3; i++) { let count = 0; counters.push(() => { count += i; return count; }); } return counters; } const counters = createCounters(); const first = counters.map(fn => fn()).join(','); const second = counters.map(fn => fn()).join(','); console.log(first, second);
2.5K ·

Nearby in the feed

JJavaScriptPollJJavaScript👀 htmx 4.0 has landed, the first major release in two years, with lots of changes. It remains a neat way to add interactivity to server-rendered pages without r
this message
JJavaScriptPollJJavaScript🔥 The Depths of JavaScript: Minesweeper in 247 Bytes An analysis of a playable 8x8 Minesweeper implementation in one line of JavaScript, complete with flags and
JJavaScriptJavaScript@javascript · channel · Tech
30 984subscribers1 565average post reach
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count