и посмотреть медиа
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 Map(); function createHandler(id) { const data = { id, value: new Array(1000).fill(id) }; cache.set(id, data); return function(action) { if (action === 'get') return data; if (action === 'clear') cache.delete(id); }; } const handler1 = createHandler('user-1'); const handler2 = createHandler('user-2'); handler1('clear'); console.log(cache.size); console.log(handler1('get').id); Ответ: 1, user-1 JavaScript test | #JavaScript & Max
Открыть канал и посмотреть медиаOnly registered users can share their opinion.
Be the first to share your impression of this resource!