← Back to JavaScript exercises

30. Form Validation

Result appears here
button.onclick=()=>output.textContent=input.value?"Valid":"Required";