# Return

`return` 语句用于函数 [fn] 返回一个值并终止函数。`return` 只能出现在函数中。

```nv
fn foo(count: number): number {
    return count + 1;
}
```

[fn]: function.md
