The class has two initial properties: "name" and "year".
JavaScript Tutorial - W3Schools }); "hasclass javascript w3schools" Code Answer's javascript hass class javascript by Friendly Hawk on Dec 11 2019 Donate Comment 8 xxxxxxxxxx 1 if (myElement.classList.contains('someClassname')) { 2 3 } javascript hasclass javascript by Comfortable Capuchin on Apr 02 2020 Comment 5 xxxxxxxxxx 1 if (document.body.classList.contains('thatClass')) { 2