и посмотреть медиа
JavaScript test - knowledge check
и посмотреть медиа
Channel with tests to check JavaScript knowledge. Practical tasks for self-assessment of level.
Platform for testing JavaScript skills. Regularly publishes tasks of varying difficulty, helping identify knowledge gaps and prepare for real development tasks.
❗️Что будет на выходе: const cache = new WeakMap(); function expensiveOperation(obj) { if (cache.has(obj)) { console.log('Cache hit!'); return cache.get(obj); } console.log('Computing result...'); const result = obj.value * 2; cache.set(obj, result); return result; } const user = { value: 42 }; expensiveOperation(user); expensiveOperation(user); expensiveOperation({ value: 42 }); Ответ: Computing result... Cache hit! Computing result... JavaScript test | #JavaScript & Max
Открыть канал и посмотреть медиаOnly registered users can share their opinion.
Be the first to share your impression of this resource!