What will be the output of the following code?
const element = document.querySelector('#myElement');
element.innerText = 'Hello, world!';
console.log(element.textContent);
What will be the output of the following code?
const element = document.querySelector('#myElement');
element.innerText = 'Hello, world!';
console.log(element.textContent);