Functions take a set number of arguments

This commit is contained in:
2022-08-26 12:48:10 +01:00
parent f36289786e
commit 7bd67765aa
6 changed files with 72 additions and 58 deletions

View File

@@ -275,7 +275,7 @@ fn doSomething() {
}
```
Functions can take a number of parameters within the parenthesis following their names, and can return a number of values to the calling context using the return keyword.
Functions can take a set number of parameters within the parenthesis following their names, and can return a number of values to the calling context using the return keyword.
```
fn reverseOrder(a, b, c) { //return type isn't required by default