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)