Hey Stack Overflow Team,
New JS engineer here. In the DOM, why do we change formating? Curious about the significance between these two:
document.querySelector('element to change').innerHTML = 'new display text.';
variable.innerText = ("");
Thank you!
Haven't put it into practice yet. Reviewing examples.