nomor 10 kok eror ya kak,
ini kak code nya
function submit() {
const formData = handleGetFormData();
const isValid = validateFormData(formData);
const warningDiv = document.getElementById(“warning”);
warningDiv.textContent = “”;
if (!isValid) {
warningDiv.textContent = “Periksa form anda sekali lagi”;
} else {
warningDiv.textContent = “”;
}
}
document.getElementById(‘submit-form’).addEventListener(‘click’, (event) => {
event.preventDefault();
submit();
})