Data de entrada do valor padrão JS

<input type=date id=e>
<script>
document.getElementById('e').value = new Date().toISOString().substring(0, 10);
</script>
Restu Wahyu Saputra