var x = myFunction(4, 3);    // Function is called, return value will end up in x

                                          function myFunction(a, b) {
                                              return a * b;            // Function returns the product of a and b
                                          }
                                      
                                      
                                        
                                        

I f omitted, the function does not return a value. You use the return statement to stop execution of a function and return the value of expression. If expression is omitted, or no return statement is executed from within the function, the expression that called the current function is assigned the value undefined.