# return {#return}

**Parent topic:**[Programming Statements](../../Programming/ProgrammingStatements/programming_statements.md)

## Syntax {#syntax}

return &lt;expression&gt;

## Details {#details}

Terminate the execution of a function and return the result. A return statement can only be used in function definition.

## Examples {#examples}

```
def f(a, b) {c=a*2+b pow 2; return a+c};
f(1,2);
// output: 7
```

