How to Convert from Inches to Miles Using Javascript With HTML?

Hello Friends Today, through this tutorial, I will tell you How to Convert inches to Miles Using JavaScript With HTML.

inchestomiles.html

<!DOCTYPE html>
<html>
<title>Inches to Miles Length Converter</title>
<body>
<h2>Length Converter</h2>
<p>
<label>Inches</label>
<input id="inputInches" type="number" placeholder="Inches" oninput="LengthConverter(this.value)" onchange="LengthConverter(this.value)">
</p>
<p>Miles: <span id="outputMiles"></span></p>
<script>
function LengthConverter(valNum) {
document.getElementById("outputMiles").innerHTML=valNum*0.000015783;
}
</script>
</body>
</html>