diff --git a/src/main.js b/src/main.js index a89e82d..b6e45a7 100644 --- a/src/main.js +++ b/src/main.js @@ -41,9 +41,11 @@ document.addEventListener("DOMContentLoaded", () => { const formData = new FormData(form); const formDataValue = formData.values(); const [email, country, zip] = Array(5).fill(formDataValue.next().value); - alert( - `Success!\nEmail: ${email}\nCountry: ${country}\nZIP: ${zip}\nPassword: [redacted]`, - ); + setTimeout(() => { + alert( + `Success!\nEmail: ${email}\nCountry: ${country}\nZIP: ${zip}\nPassword: [redacted]`, + ); + }, 600); } else { alert("Hold up, one or more fields are invalid! Try again"); }