To validate that a text field has a minimum length of 5 characters and a maximum of 10, what would be the correct JavaScript code?
<input type="text" id="textField">
const text = document.getElementById('textField').value;
To validate that a text field has a minimum length of 5 characters and a maximum of 10, what would be the correct JavaScript code?
<input type="text" id="textField">
const text = document.getElementById('textField').value;