function myFunction(p1, p2) {
                                            return p1 * p2;              // The function returns the product of p1 and p2
                                        }
                                        
                                        

F functions are one of the fundamental building blocks in JavaScript. A function is a JavaScript procedure—a set of statements that performs a task or calculates a value. To use a function, you must define it somewhere in the scope from which you wish to call it.