📜  如何在javascript代码示例中将公里转换为米

📅  最后修改于: 2022-03-11 15:01:25.182000             🧑  作者: Mango

代码示例1
var kilometers = parseInt(prompt("Please enter kilometers:"));
var miles = kilometers / 1.6;
console.log(miles + " Miles");