My question is why my element is returning a value of null even with a value preassigned in my input tag.
<input type="number" name="minute" id="minute"
maxlength="2" max="2" placeholder="00" value="00" required>
I am using this code in my JS file.
var min = document.getElementById("minute");
Edit: I'm sorry guys I accidentally deleted it copying the code over. To clarify this variable is at the very top of my file where I am just declaring variables for use.