Cursus Raku / Elementa / Programmata scribere et exsequi / Commentarii / Commentarii unius lineae

Quiz: Commentarii unius lineae

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;

Commentarii unius lineae   |   Commentarii multi-lineae