и посмотреть медиа
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 target = { name: 'Maya', age: 25 }; const handler = { get(obj, prop) { if (prop in obj) { return obj[prop]; } return `Property '${prop}' not found`; }, set(obj, prop, value) { if (typeof value === 'string') { obj[prop] = value.toUpperCase(); } else { obj[prop] = value; } return true; } }; const proxy = new Proxy(target, handler); proxy.city = 'tokyo'; console.log(proxy.name); console.log(proxy.city); console.log(proxy.country); Ответ: Maya TOKYO Property 'country' not found JavaScript test | #JavaScript & Max
Открыть канал и посмотреть медиаOnly registered users can share their opinion.
Be the first to share your impression of this resource!