class Draw {
constructor(h, w, id) {
this.h = h;
this.w = w;
}
create(elem) {
let createConvas = document.querySelector('div');
createConvas.innerHTML = `<canvas width=${this.w} height=${this.h}></canvas>`;
return createConvas;
}
}
let draw = new Draw;
draw.create(2, 4,);
document.body.append(draw)