-4
const alun = document.querySelector("#bottomaluno")
alun.addEventListener('click', addaluno)
function addaluno() {
if(display = 'none') {
document.querySelector("#alunos").style.display = 'block';
} else{
document.querySelector("#alunos").style.display = 'none';
}
}
This answers your question? How to use Else if correctly?
– hkotsubo