Skip to main content

Functions

The video for “Functions” is in the works!

Functions are reusable blocks of code that perform specific tasks.

Basic Functions​

Try it yourself
Loading...

Parameters and Return Values​

Try it yourself
Loading...

Default Parameters​

Functions can have default parameter values:

Try it yourself
Loading...

Lambda Functions​

Anonymous functions assigned to variables:

Try it yourself
Loading...

Previous: Basic Types | Next: Control Flow