What does this page log in a browser?

from Form validation
Node 24 beginner 2 min

What does this page log in a browser?

HTML
<form id="signup">
  <input id="email" type="email" required />
</form>
<script>
  const form = document.querySelector('#signup');
  const email = document.querySelector('#email');
  email.value = 'wrong';
  console.log(form.checkValidity());
  email.value = '[email protected]';
  console.log(form.checkValidity());
</script>
Open in playground
Report an error