mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Functions take a set number of arguments
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user