Front End Development: Authorization Form

The error is “caught TypeError: Cannot read properties of null (reading ‘value’)” at line:

const enteredPassword = e.target.querySelector(
      'input[type="password"]').value;

This is their own event handler function and the code is incorrect. It should be:

const enteredPassword = document.querySelector(
      'input[type="password"]').value;

I ran this and it worked fine. I will submit a bug

1 Like