Answer the question
In order to leave comments, you need to log in
How to add nodes in a loop?
I add nodes to the DOM, but everything hangs from this code:
const contpre = document.createElement('div');
contpre.className = 'contpre';
for (let i = 0; i < 6; i + 1) {
contpre.append(document.createElement('label')); ------ вот эта часть кода из-за которой всё зависает
}
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