A call to execute the statement which are present inside and method is called function call/function invoke.
Ex: Below example has a function expression by name greet() which accepts the parameters "name". greet("Tej") is the method call to execute all those statement which are in between { } which is called as function scope.
βοΈ Part 1:
Part one takes about the function returning variables(char, string, number, boolean as the return data type
There are several types of function calls as mentioned below.
βοΈ1. The called function returning value
βοΈ2. The called function not returning value
Output:
βοΈ3. The called function returning variable as value
Output:
βοΈβοΈβοΈ More Examples:
Output: Try it out
Output: Try it out
βοΈNote: Part 1 consists of #1, #2 and #3 from the above examples.
Top comments (0)