What are Actual Parameters?
Actual parameters, also called actual arguments or arguments, are the values or expressions provided to a function or method when it is called. They correspond to the formal parameters in the function’s definition and supply the necessary input data for the function to execute. Actual parameters can be constants, variables, expressions, or even function calls.
Syntax of Actual parameters:
Below is the syntax for Actual parameters:
function gfgFnc(name) {
// Function body
}
// Actual Parameter
gfgFnc("Geek");
Formal and Actual Parameters in Programming
In programming, parameters are variables or values passed to a function or method during its invocation. They enable the function to receive input data, perform operations, and optionally return a result.