Course of Raku / Essentials / Functions essentials / Creating and calling functions
Quiz — Creating a function
1
Complete the program to create a function.
| $x { | sub f(␣␣) ␣ |
| . | say $x; |
| } | ␣ |
2
Choose the right declarator.
| sub | (: function, func, fn, sub, subroutine :) f() { |
| . | # . . . |
| . | } |
Course navigation
← Solution: The value of e | More about functions →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська