how to declare funtion in js code example Example: function js function toCelsius(fahrenheit) { return (5/9) * (fahrenheit-32); }