how to write a function for a program code example Example: how to make a function function myFunction(){ console.log('hi') } myFunction()