apa sintaks dari menempatkan pendengar acara di 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