English
Open in Telegram

Post CHALLENGE

31 October 2026
J
JavaScript
CHALLENGE const createCounterModule = (() => { let instances = 0; return function() { instances++; let count = 0; return { increment() { count++; return count; }, id: instances }; }; })(); const a = createCounterModule(); const b = createCounterModule(); console.log(a.increment(), a.increment(), b.increment(), a.id, b.id); export {};
705 ·

Nearby in the feed

JJavaScriptCHALLENGE const wm = new WeakMap(); class Counter { #id; static #nextId = 0; constructor() { this.#id = Counter.#nextId++; wm.set(this, { count: 0, id: this.#idJJavaScriptPoll
this message
JJavaScriptPollJJavaScriptCHALLENGE const base = { greet() { return `Hello, ${this.name}`; } }; const mid = Object.create(base); mid.name = 'Mid'; const child = Object.create(mid); child
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