class List {
constructor(list) {
this.list = list;
}
add() {
console.log(this.list * 5);
}
render() {
list.add()
}
}
const list = new List(5);
const list2 = new List(10);
list.render();
list2.render();
render() {
list.add();
list2.add();
}