Coding task · JavaScript and TypeScript course · Module 8: Events and the DOM
Exercise: Form Handling
Create a registration form handling system for Jurassic Park visitors.
Task
The index.html file has a visitor registration form (fields name and email) and a script in a <script> tag. Fill in the blanks: ___BLANK1___ is the form submission event, ___BLANK2___ is the event method that stops the default submission and page reload, and ___BLANK3___ is a condition that is true when the e-mail does not contain an @ sign. Valid data should show a greeting with the name, invalid data an error message.