Answer the question
In order to leave comments, you need to log in
How to "visit" the returning html into a class instance property?
I want after calling this.create(tag) the result will be placed in this.element
class TEST_DOM {
constructor(place) {
this.element = this.create;
this.place = place;
}
create(element) {
const html = document.createElement(element);
return html;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question