how to define and a function in javascript code example Example: function js function toCelsius(fahrenheit) { return (5/9) * (fahrenheit-32); }