class Sorter {
var array=[];
constructor() {
}
add(element) {
array[array.length+1]=element;
return array.length+1;
}
class Sorter {
constructor() {
this.array = [];
}
add(element) {
this.array[this.array.length+1]=element;
return this.array.length+1;
}
}