Jak Innerhtml jest pusty

element.innerHTML.length == 0 ? element.appendChild(createdEl) : (element.innerHTML = '', modalNote.appendChild(createdEl));
CuteKittyCat