English
Open in Telegram

Post CHALLENGE

20 October 2026
J
JavaScript
CHALLENGE class Counter { static #total = 0; #id; constructor() { Counter.#total++; this.#id = Counter.#total; } get id() { return this.#id; } static get total() { return Counter.#total; } } class Special extends Counter { #label; constructor(label) { super(); this.#label = label; } get label() { return `${this.#label}-${this.id}`; } } const c1 = new Counter(); const c2 = new Special('x'); const c3 = new Special('y'); console.log(c1.id, c2.id, c3.label, Counter.total);
660 ·

Nearby in the feed

JJavaScriptCHALLENGE const obj = { b: 1, 2: 'two', a: 3, 1: 'one' }; console.log(Object.keys(obj).join(','), Object.values(obj).join(','));JJavaScriptPoll
this message
JJavaScriptPollJJavaScriptCHALLENGE const source = { count: 0, get value() { this.count++; return this.count; } }; const { value, ...rest } = source; const spread = { ...source }; consol
JJavaScriptJavaScript@javascript · channel · Tech
30 984subscribers1 202average 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