в чем ошибка? Не судите строго

class Component{
    constructor(out){
        this.out = document.querySelector('.out')
    }
    show(){
        this.out.style.display = 'block';
    }
    hide(){
        this.out.style.display = 'none';
    }
}

class Box extends Component{
    constructor(options){
        super(options.out);
        this.out.style.width = this.out.style.height = options.size + 'px'
        this.out.background = options.background
    }
}


let box1 = new Box({
    out:'one',
    background:'red',
    size:120
})

Ответы (0 шт):