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.
| 1 | my $name = 'John'; # Setting the name | |
| 1 | my $age = 23; ## Change it next year | Everything after the first # is a comment. |
| 0 | say $name; Printing name | A comment must start with a #. |
| 0 | my $city = 'TBA'; // Not yet known | C++-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: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська