// const but = document.querySelector('button')
const form = document.forms[0]
form.addEventListener('input', (e) => {
if(form.elements.email.value.length > 4 && form[1].value.length > 4) {
form.elements[2].style.backgroundColor = '#90E39A'
}
else {form.elements[2].style.backgroundColor = '#331E38'}
})
Хелп плз