English
Open in Telegram

Post CHALLENGE

24 October 2026
J
JavaScript
CHALLENGE const memoize = (fn) => { const cache = new Map(); return (...args) => { const key = JSON.stringify(args); if (cache.has(key)) return cache.get(key); const result = fn(...args); cache.set(key, result); return result; }; }; let calls = 0; const square = memoize((x) => { calls++; return x * x; }); console.log(square(4), square(4), square(-4), calls);
1.5K ·

Nearby in the feed

JJavaScriptCHALLENGE let i = 0; const key = () => `k${i++}`; const obj = { [key()]: 1, [key()]: 2, [key()]: 3 }; const sym = Symbol('x'); const keyObj = { toString() { retJJavaScriptPoll
this message
JJavaScriptPollJJavaScriptCHALLENGE const handler = { get(target, prop, receiver) { if (!(prop in target)) { return `no ${String(prop)}`; } return Reflect.get(target, prop, receiver); },
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