Given the following HTML, how would you check that the password field has at least 8 characters?
<input type="password" id="password">
const password = document.getElementById('password').value;
Given the following HTML, how would you check that the password field has at least 8 characters?
<input type="password" id="password">
const password = document.getElementById('password').value;