📅  最后修改于: 2022-03-11 15:03:49.293000             🧑  作者: Mango
function calculateDogAge(age) {
var dogYears = 7*age;
console.log("Your doggie is " + dogYears + " years old in dog years!");
}
calculateDogAge(1);
calculateDogAge(0.5);
calculateDogAge(12);