Handling Forms & User Input

What's the difference between checkValidity() and reportValidity()?
function validateForm(form) {
  const inputs = Array.from(form.elements);
  return inputs.every(input => {
    if (!input.checkValidity()) {
      input.reportValidity();
      return false;
    }
    return true;
  });
}
Next Question (8/20)