Jaka jest składnia umieszczania słuchacza zdarzeń w JavaScript MDN
document.querySelector('#check').addEventListener('click',check)
function check() {
const day = document.querrySelector('#day').value
//conditional go here
if(day === "Tuesday" || day === "Thursday" ){
alert('CLASS DAY!')
}else if(day === "Saturay" || day === "Sunday"){
alart('weekend')
}else{
alert('BORRRRRINNNNNNGGGGGG!!!')
}
}
Jolly Jackal