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()

What JavaScript statements should you place in the blank in…

What JavaScript statements should you place in the blank in order to retrieve the value of the user’s selection from the sauceFlavor drop-down menu in your web form and assign it to the sauceValue variable? let orderForm = document.forms.orderForm; let sauceFlavor = orderForm.elements.sauceFlavor;