If you have a numeric field and want to ensure that the user has entered a number between 10 and 20, what would be the correct JavaScript code to validate this?
<input type="number" id="numField">
const num = document.getElementById('numField').value;