и посмотреть медиа
Prueba de JavaScript - comprobación de conocimientos
и посмотреть медиа
Canal con pruebas para comprobar el conocimiento de JavaScript. Tareas prácticas para la autoevaluación de nivel.
Plataforma para probar habilidades JavaScript. Publica regularmente tareas de dificultad variable, ayudando a identificar lagunas de conocimiento y prepararse para tareas de desarrollo reales.
❗️Что будет на выходе? 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
Открыть канал и посмотреть медиаSolo los usuarios registrados pueden compartir su opinión.
¡Sé el primero en compartir tu experiencia con este recurso!