и посмотреть медиа
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.
❗️Что будет на выходе? function Device(name) { this.name = name; this.isOn = false; } Device.prototype.turnOn = function() { this.isOn = true; return `${this.name} is now on`; }; function Smartphone(name, model) { Device.call(this, name); this.model = model; } Smartphone.prototype = Object.create(Device.prototype); Smartphone.prototype.constructor = Smartphone; Smartphone.prototype.turnOn = function() { const result = Device.prototype.turnOn.call(this); return `${result} (model: ${this.model})`; }; const myPhone = new Smartphone('iPhone', '13 Pro'); console.log(myPhone.turnOn()); Ответ: iPhone is now on (model: 13 Pro) JavaScript test | #JavaScript & Max
Открыть канал и посмотреть медиаOnly registered users can share their opinion.
Be the first to share your impression of this resource!