Course of Raku / Essentials / Variables and data types essentials / Strings / String concatenation

Quiz 1: Concatenating strings

In the below operations, different concatenations happen. Complete the missing parts.

.my $first-name = 'Edgar';
.my $middle-name = 'Allan';
=my $last-name ␣ 'Poe';
~ ~my $name = $first-name ␣ ' ' ␣ $last-name;
- ~ ~ - ~ ~ -my $full-name = $first␣name ␣ ' ' ␣ $middle␣name ␣ ' ' ␣ $last␣name;
.say $full-name;
~ ~say $first-name ␣ ' ' ␣ $last-name;
~say 'E. ' ␣ $last-name;

Course navigation

String concatenation   |   Quiz 2: Concatenating strings and numbers

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська