Let’s create some rockets!

2/7

Aportes 1

Preguntas 1

Ordenar por:

¿Quieres ver más aportes, preguntas y respuestas de la comunidad?

> Avertencia codigo en el comentario y aun asi no me mifnciono es una diuda porque a mi parecer esta bien mas no pasa al correr pruebas > .\[!NOTE]. .\[!NOTE]. .\[!NOTE]. ================ # .\[!NOTE]. # . # . # . # . # . # . # . # . # . # . # . # . # . # . # . . Ahora si el codigo ... poruqe no pasa? ```js export class Rocket { constructor({ model, engine, category, nozzle }) { this._model = model this._engine = model this._category = model this._nozzle= model } get model() { return this._model; // Your code goes here... } get engine() { return this._engine; // Your code goes here... } get category() { return this._category; // Your code goes here... } get nozzle() { return this._nozzle; // Your code goes here... } toString() { } } export class LiquidFuelRocket extends Rocket { constructor() { super({ model: "LF001", engine: "liquid", category: "hermes", nozzle: "double", }); } } export class SolidFuelRocket extends Rocket{ constructor() { super({ model: "SF001", engine: "solid", category: "valkyria", nozzle: "single", }); } } export class RocketFactory { // Your code goes here... constructor() { } createRocket() { return new Error('Not available at this moment!'); } } export class LiquidFuelRocketsFactory extends RocketFactory { createRocket() { return new LiquidFuelRocket(); } } export class SolidFuelRocketsFactory extends RocketFactory{ createRocket() { return new SolidFuelRocket(); } } ``` =========
undefined