и посмотреть медиа
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 a = document.createElement("a"); a.id = "test1"; a.href = "test2"; document.body.appendChild(a); console.log(window.test1); Ответ: Ссылка скрыта JavaScript test | #JavaScript & Max
Открыть канал и посмотреть медиа❗️Что будет на выходе: function Vehicle(type) { this.type = type; } Vehicle.prototype.wheels = 4; Vehicle.prototype.getInfo = function() { return `${this.type}: ${this.wheels}`; }; const car = new Vehicle('Car'); const bike = Object.create(car); bike.type = 'Bike'; bike.wheels = 2; console.log(car.getInfo() + ' | ' + bike.getInfo()); Ответ: Car: 4 | Bike: 2 JavaScript test | #JavaScript & Max
Открыть канал и посмотреть медиа❗️Что будет на выходе: const target = { name: 'Sarah', age: 25 }; const handler = { get(obj, prop) { if (prop in obj) { return obj[prop]; } return `Property '${prop}' not found`; }, set(obj, prop, value) { obj[prop] = value.toString().toUpperCase(); return true; } }; const proxy = new Proxy(target, handler); proxy.city = 'boston'; console.log(proxy.name); console.log(proxy.city); console.log(proxy.country); Ответ: Sarah BOSTON Property 'country' not found JavaScript test | #JavaScript & Max
Открыть канал и посмотреть медиа❗️Что будет на выходе: const array = [1, 2, 3, 4, 5]; const result = array.filter(n => n % 2).map(n => n * 2); console.log(result); Ответ: [2, 6, 10] JavaScript test | #JavaScript & Max
Открыть канал и посмотреть медиаOnly registered users can share their opinion.
Be the first to share your impression of this resource!