Suppose the pattern attribute has been set to equal the regu…

Suppose the pattern attribute has been set to equal the regular expression ^\d{5}5$ within the tag for the accountNo field in a web form. This regular expression matches a text string of exactly five digits. What can you insert in the blank in the following JavaScript function to display a custom error message when the user enters something other than five digits, then tries to submit the form?let submitButton = document.getElementById(“submitButton”);submitButton.addEventListener(“click”, validateAccount);function validateAccount() {   let acc = document.getElementbyId(“accountNo”);   if (acc.validity.valueMissing) {      acc.setCustomValidity(“Please enter your account number”);   } _____ {      acc.setCustomValidity(“Account numbers have five digits”);   } else {      acc.setCustomValidity(“”);   }}

When the userName field of the login web form contains inval…

When the userName field of the login web form contains invalid data entered by the user, both of the following JavaScript commands will return false:Command 1: document.forms.login.elements.userName.checkValidity()Command 2: document.forms.login.checkValidity()