javascript callback example w3schools Example: how to use function in javascript /* Declare function */ function myFunc(param) { // Statements }