how to declare a function in js code example
Example 1: js function
function name(parameter1, parameter2, parameter3) {
// what the function does
}
Example 2: function js
function toCelsius(fahrenheit) {
return (5/9) * (fahrenheit-32);
}
function name(parameter1, parameter2, parameter3) {
// what the function does
}
function toCelsius(fahrenheit) {
return (5/9) * (fahrenheit-32);
}