// here is the function that iḿ trying to use, i've already tried to use getElementbyID, but the same error keeps on going.
let sla = document.querySelector('#MathSection')
function mathOn() {
if(sla.classList.contains('show')) {
sla.classList.remove('show')
} else {
sla.classList.add('show')
}
}
I've already tried getElementbyID, but the same error happens, I've tried to change from section to div, but the same error continues, I don't know how to proceed because I'm learning a short time ago, and I don't know how to manipulate the DOM.