We know if we declare a variable as const we can't reassign anything to them. Then how do you justify altering certain html or css properties of a node/nodelist selected in Javascript?
<h2 class="targetHTML">Dynamically varying content A</h2>
javascript part
const nodeHTML = document.querySelector(' .targetHTML');
nodeHTML.textContent = 'Varied content B';
This changes the text which is displayed within the H2 tag. The node and whatever properties or attributes of it once stored in the const should freeze?