Course of Raku / Essentials / Scalar variables / Declaration with initialization
Quiz 2: Declaration and initialization or declaration with initialization
Mark those one-line programs that have declaration with initialization in a single go.
0 | my $a; $a = 42; | Here, the variable is first created and then a value is assigned to it. |
1 | my $a = 42; | |
1 | my $a = 42; my $b = $a; | You can use the variable to initialize another variable. |
Course navigation
← Scalar variables / Assigning a value | Scalar variables / The defined-or operator →
💪 Or jump directly to the exercises to this section.
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська