What will be the output of the following code?
const element = document.getElementById('myElement');
element.dataset.info = '123';
console.log(element.getAttribute('data-info'));
What will be the output of the following code?
const element = document.getElementById('myElement');
element.dataset.info = '123';
console.log(element.getAttribute('data-info'));