Published Jul 23, 2021Updated Sep 9, 2021
Contribute to Docs
Commenting code helps programmers write free text that is commonly used to explain the code written, or can even be used to add TO-DOs to the code.
Single-line comments start with a
# I am a single line comment.
Multi-line comments start with
=begin and end with
=beginI am a multi line comment.I can take as many lines as needed.=end
- Anonymous contributorAnonymous contributor3077 contributions
- Anonymous contributor
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn Ruby on Codecademy
Front-End EngineerFront-end engineers work closely with designers to make websites beautiful, functional, and fast.
Includes 34 Courses
With Professional Certification