Horje
javaScript Age in Dog years //write a function that takes your age and returns it to you in dog years - they say that 1 human year is equal to seven dog years function dog Years() javaScript
javaScript Age in Dog years //write a function that takes your age and returns it to you in dog years - they say that 1 human year is equal to seven dog years function dog Years() javaScript
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);




Javascript

Related
javascript string problems Code Example javascript string problems Code Example
Moto Racer game Code Example Moto Racer game Code Example
json api data fetch error Code Example json api data fetch error Code Example
javascript for loop that prints 10 times Code Example javascript for loop that prints 10 times Code Example
ui5 React bind element Code Example ui5 React bind element Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7