When you call a function in JavaScript, the code inside runs. If the function uses 'return', it sends a value back to where it was called. This value can be saved in a variable or used directly. If the function does not have a return statement, it returns undefined automatically. In the example, the add function returns the sum of two numbers, which is then saved in 'result' and printed. The execution table shows each step: calling the function, calculating the sum, returning the value, assigning it, and printing it. Variables 'a' and 'b' get their values from the call, and 'result' gets the returned sum. Remember, return stops the function and sends the value back.