Answers for "how to convert kilomer to meter in javascript"

1

how to convert kilomer to meter in javascript

var kilometers = parseInt(prompt("Please enter kilometers:"));
var miles = kilometers / 1.6;
console.log(miles + " Miles");
Posted by: Guest on January-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language