Comments In Ruby Language


# Comments are very essential in programming and pound characters make them possible.
# When used, you tell an app
# As a programmer, it is very good to include comments. This will make easy reading
# If you temporarily wants to ignore a line, you can use the pound character.

puts "We are learning the use of comments in Ruby programming."

puts  "The pound characters can either start the sentence or end it."

puts "Just know lines after the pound character would not print or execute."

# puts "For instance, this line would not print."

puts "This line too would print." # Codes after the pound character would not execute.

# puts "Comments makes for easy reading too."

Comments

Popular Posts