Search
 
SCRIPT & CODE EXAMPLE
 

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);
Comment

PREVIOUS NEXT
Code Example
Javascript :: canvas container page offset 
Javascript :: onClick button react send to another component 
Javascript :: node js write read string to file 
Javascript :: money formatting javascript 
Python :: ignore filter warnings jupyter notebook 
Python :: ipython autoreload 
Python :: python suppress warnings 
Python :: matplotlib plot dashed 
Python :: python today - 1 day 
Python :: pygame boilerplate 
Python :: remove all pyc files 
Python :: how to start python quick server 
Python :: drop a range of rows pandas 
Python :: python RuntimeError: tf.placeholder() is not compatible with eager execution. 
Python :: get ip from instance id boto3 
Python :: python measure time 
Python :: how to install pyaudio 
Python :: download playlist from youtube python 
Python :: colab im show 
Python :: keras plot history 
Python :: python program to find first n prime numbers 
Python :: python check if folder exists 
Python :: python save figure 
Python :: python get output of command to variable 
Python :: sort by two columns in pandas 
Python :: format to 2 or n decimal places python 
Python :: pickle a dictionary 
Python :: create python virtual environment 
Python :: hide root window tkinter 
Python :: python opencv number of frames 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =