Course of Raku / Essentials / Basic introduction to Raku and its compiler / Comments / Single-line comments

Quiz: Single-line comments

Select the lines with correct comments. Don’t worry if you do not understand the Raku code yet.

1my $name = 'John'; # Setting the name
1my $age = 23; ## Change it next yearEverything after the first # is a comment.
0say $name; Printing nameA comment must start with a #.
0my $city = 'TBA'; // Not yet knownC++-style comments are not recognised in Raku.
1# say $age;The whole line has been commented out.
1#say $age;

Course navigation

Single-line comments   |   Multi-line comments

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