DomTokenList.value is used to take string value, such as in an array or element, then return it as without a string. You can do this in both markup languages like HTML.

<span class="Hakuna Matata!"></span>
const head = document.querySelector("span");
const classes = head.classList;
const todo = classes**.value**;
console.log(todo);
//The output in the console would be te class name, but if you want to see it without the quotes you enter it in the HTML using the code below

head.textContent = todo;