Java Script Kernel Post
Using Jupyter JavaScript kernel
function Multiplication(a, b) {
return a * b;
}
Multiplication(125,5)
function Celcius(Fahrenheit) {
return (5/9) * (Fahrenheit-32);
}
Celsius(0)
function IsOdd(x){
if (x % 2 == 0) {
console.log(x + " is an even number");
} else {
console.log(x + " is an odd number");
}
}
IsOdd(24)
function DaysHoursMinutesSeconds(x){
console.log(x + " hour(s) is equivalent to " + x/24 + " days, " + x*60 + " minutes, and " + x*3600 + " seconds.")
}
DaysHoursMinutesSeconds(48)