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(“”);   }}

Suppose you want to modify the following JavaScript event ha…

Suppose you want to modify the following JavaScript event handler to use arrow function syntax:form.onclick = function() {    console.log(“The user clicked the form!”);}​What should you place in the blank in the following modified version?form.onclick = _____​

Which statement about the following JavaScript code is true?…

Which statement about the following JavaScript code is true?let greeting = “Happy birthday!”;if (ageAtBirthday < 6) {   greeting += " You are a cute little kid.";} else if (ageAtBirthday < 40) {   greeting += " Have lots of fun!";} else if (ageAtBirthday === 16) {   greeting += " You are old enough to drive.";} else {   greeting += " You are over the hill!";​