Course of Raku / Essentials / Strings / String concatenation

Quiz 3: Concatenating strings again

Which lines are correct Raku code to concatenate strings?

0 'alpha' + 'beta' A + does not concatenate strings.
0 'alpha' . 'beta' Neither does a ..
1 'alpha' ~ 'beta' Only the ~ is a string concatenation operator.
0 'alpha' ~~ 'beta' One tilda is enough. This line is syntactically correct, but it does not concatenate the strings.
0 α ~ β Strings need to be quoted.
1 'α' ~ 'β'  

Course navigation

Strings   |   Strings / Variable interpolation


💪 Or jump directly to the exercises to this section.

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