To create a html registration form and to validate the form using javascript code.

JavaScript form validation is used to check if all the mandatory fields in a form is filled with correct format.