What will be the output of the following code?
const element = document.createElement('div');
element.classList.add('myClass');
console.log(element.className);
What will be the output of the following code?
const element = document.createElement('div');
element.classList.add('myClass');
console.log(element.className);