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.

  my $a; $a = 42;
  my $a = 42;
  my $a = 42; my $b = $a;

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: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська